Launch .sh in gnome-terminal
Simplify the process of launching .sh scripts in a terminal by providing an open-with entry.
Pros:
- Allows you to set .sh files to launch by default in the terminal.
- Avoids needing to create .desktop shortcuts to launching a program in the terminal.
- Solves right clicking 'Run as a Program' not launching a visible terminal window.
How to implement
Paste the following into /usr/share/applications/gnome-terminal.desktop
:
[Desktop Entry]
Type=Application
Name=Gnome Terminal
Exec=gnome-terminal -x sh %f
MimeType=application/x-shellscript;
Icon=gnome-terminal
Screenshot