Thomas Sampson

Creating Your Own Ubuntu Unity Launcher

Leave a comment

Today I needed to setup a custom unity launcher for an application which would show in the unity dash and could be pinned to the unity launcher after launch. It turns out that unity launcher entries are represented as “.desktop” files and reside in the following location:

/usr/share/applications

or additionally per-user in the following location:

~/.local/share/applications

Below is a template for creating your own .desktop file, simply edit this to suit your application, the entries in the file should fairly self explanatory.

#!/usr/bin/env xdg-open
 
[Desktop Entry]
Name=Sublime Text Editor
Comment=Sublime Text Editor
Exec="/usr/bin/sublime" %F
MimeType=text/plain;
Terminal=false
Type=Application
Icon=/home/mimir/sublime.png
Categories=GNOME;GTK;Utility;TextEditor;Development;Utility;
Advertisements

Author: tomtech999

I have recently graduated with a 1st class degree in MComp Games Software Development at Sheffield Hallam University, focusing primarily on application development in C++, with experience in graphics programming, scripting languages, DVCS/VCS and web technology. In my spare time I enjoy Drumming, Reading and Snowboarding!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s