user-avatar
Today is Saturday
April 27, 2024

July 2, 2014

Adding custom application to Unity launcher

by viggy — Categories: FOSS — Tags: , , , , Leave a comment

Recently I downloaded Tor Browser and I wanted to be able to search for it in Unity Launcher. Also I wanted to lock it to the launcher instead of my default Firefox. Found this good video on youtube explaining how to add a custom application to Unity Launcher, https://www.youtube.com/watch?v=GSU9YuE_36w

The process is pretty simple.
1) I downloaded a logo of Tor of 128 by 128 size. Copied the same to /usr/share/icons/tor.png
2) In /usr/share/applications/, I created a file called tor-browser.desktop with following contents


[Desktop Entry]
Name=Tor-Browser
Comment=Tor enabled Firefox Browser
Exec=/home/viggy/Documents/tor-browser_en-US/start-tor-browser
Icon=/usr/share/icons/tor.png
Terminal=false
Type=Application
Categories=Developer;Utility;

Note that Exec needs to be given full path of the executable and Icon the full path of the icon.
Also note that Categories can be multiple but it has to end with a semicolon(;) even though there is a single Category

Once this is done, you can just search in your Unity Launcher and you will get the application and see the logo of the same.
Enjoy.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>