Sunday, November 4, 2012

Creating Custom Launchers

The change to the Unity desktop brought along with it some oddities including missing features that normal GNOME desktops used to have.  I figured I'd post what I did to get my custom ssh apps to work in a console.

The easiest way without having to drag up in and install GNOME stuff is to create a .desktop file that appears on your desktop.  These are the file contents:

[Desktop Entry]
Name=ShellScriptApp
Exec=gnome-terminal -e /full/path/to/shellscriptapp.sh
Type=Application
StartupNotify=true
Comment=Your Comment Here
Path=/full/path/here
Icon=/icon/path/to/the/png/file

The contents will run a gnome-terminal and execute the command you need so you get a nice terminal window with the app running.

No comments: