I have the allowed execution of shell scripts (they were already X by default in properties) but can not run them from outside the terminal without opening them to edit. I scrolled down in 'open with other app' and tried "run software", no luck. Can I execute files from the desktop?
1 Answers
In Ubuntu/Linux so called file extension doesn't play a role to the file execution. It depends of the file permissions. For example, the command chmod +x filename
will allow the execution of the file by all - owner/user, group and others. Or by using chmod u+x filename
the executable permission will be granted only to the user/owner.
Within the desktop environment the behaviour of the executable files depends on the settings of your primary file manager. For example within Ubuntu 16.04 this is Nautilus. To change the behaviour: Open Nautilus; go to Edit menu and choice Preferences. Then click on the Behaviour tab. There are three options of the behaviour of the Executable Text Files:
Another way to execute a file within the desktop environment (while the option View executable text files when they are opened is selected) is to create dedicated .desktop
launcher for that file.

- 29,831
.config/
and.local/
dirs... Then you can remove the old user and its home directory... – pa4080 Sep 07 '18 at 11:16