i have lot of .sh scripts for years for easy launch customs commands, but i'm facing an issue : right now it just doesn't execute in terminal or like a program (no popup at all).
When double clicking a .sh file, it just opens in text editor.
Chmod +x is ok (and it's check on file properties).
If i try to change in properties the default app, i just can't find gnome-terminal in the list...
I tried several solutions.. Without success.
1° adding
application/x-shellscript=gnome-terminal.desktop to ~/.config/mimeapps.list
I've marked @nicNiz's reply as the solution; that is the easiest way to handle this. It's also safer, depending on the content of the script, as you wouldn't want to run certain actions accidentally.
Another way would be creating .desktop files that act as launchers for whatever custom command you want to run. This is part of the freedesktop specification, and my personal preferred way to deal with running scripts through a GUI.
If you rely on these scripts, you should go for this approach as you can then specify additional parameters such as the running directory.
Or, more natural to this type of file, run through terminal.