Bash Script exec by double clicking
by A-Okay from LinuxQuestions.org on (#5GQK1)
Hi,
I would like to know if there is a way to execute a bash script (.sh file) by double clicking it.
I know I can do this with dconf-editor. But if I'm going to send the file to another client, this won't work for the other client. Is there a way to put a command or code into the file, so it is possible to execute it by doubling clicking (system wide), without changing the settings on every different system?
Thank you and best regards.


I would like to know if there is a way to execute a bash script (.sh file) by double clicking it.
I know I can do this with dconf-editor. But if I'm going to send the file to another client, this won't work for the other client. Is there a way to put a command or code into the file, so it is possible to execute it by doubling clicking (system wide), without changing the settings on every different system?
Thank you and best regards.