Either you make a shell script (.sh
file, don't forget to make it executable) or you make a desktop file (.desktop
). Either of those can be double-clicked, although the former might bring up a dialog asking whether you want to execute it (can be configured, but only per user, IIRC).
myscript.desktop
:
[Desktop Entry]
Exec=bash -c 'cd /var/www/myproject && compass watch'
Name=myscript
Terminal=true
Type=Application
(Note the Terminal=true
part.)
myscript.sh
:
#!/bin/sh
gnome-terminal -e 'cd /var/www/myproject && compass watch'
(Assuming you want to use GNOME Terminal.)
Of course, there are numerous other options.