Thursday, January 12, 2012

Creating lanuchers in unity

Most of the postings I have seen on creating launchers in unity refer to the old way of making desktop launchers in previous versions of the gnome-shell.  In unity it is a little bit different.  For example say I want to add a launcher for my installation of Leksah, a nice Haskell IDE.   All I have to do is add a file to my applications directory in

/usr/share/applications

for this one I will call it leksah.desktop as the naming conventions for launchers specifies the .desktop convention

sudo touch /usr/share/applications/leksah.desktop

Now I just need to fill in the .desktop file with the following

[Desktop Entry]
Version=0.10.0.4
Name=Leksah
GenericName=Haskell IDE
Comment=Develop Haskell Software
MimeType=text/x-haskell;text/x-literate-haskell
Exec=/usr/bin/leksah
TryExec=leksah
Icon=/usr/share/leksah/pics/leksah.png
Type=Application
Terminal=false
Categories=Development;

and presto now when I pull up dash and begin to type in Leksah I see my new launcher.


I can also keep this in my favorites on the launcher panel as well.

No comments: