It does work
...even tested it, but the launcher icon is unresponsive for about 7 seconds after you clicked. If you click again after these 7 seconds, it will work again.
This "break" is caused by the icon, waiting for a window to appear. This won' t be the case, since the appearing
gnome-terminal -window is "claimed" by the
gnome-terminal's launcher icon, and your "home-made" icon does not recognize the window as "his".
You could solve the issue by adding a line to your launcher (14.04)
however, only do this for reasons of testing, don't use this as a permanent solution; having mutiple
.desktop files, possibly claiming the same
WM_CLASS in their main command is a bad idea, it will cause clashes in how
gnome-terminal appears in the Unity launcher.
Better add your script as a right-click option to the existing
- Copy the global
gnome-terminal launcher from
cp /usr/share/applications/gnome-terminal.desktop ~/.local/share/applications
Open the file with
Change the line:
and add the section:
[Desktop Action My Script]
Exec=gnome-terminal -e "bash /absolute/path/to/your/script.sh"
to the very end of the file. Then log out and back in, and you'll have your script available as a quicklist- shortcut in the