Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I download an application from a website in its .tar.bz2 form as opposed to through apt-get or through the software center as I usually do (I don't think it matters but just in case, the application in question is Sublime Text 2).

To install it I just extracted the folder to /usr/share with sudo privileges however I can't seem to be able to add it to the dash, I know I can pin it to the launcher but I would like to know how to properly install files myself as this is clearly the incorrect way of doing it.

Thanks in advance.

share|improve this question
add comment

1 Answer 1

up vote 2 down vote accepted

for adding manually installed program to the dash and launcher you have to write a desktop files for it (which end with .desktop ) .

the desktop file have this form in usual :

[Desktop Entry]
Name=application name
Exec=the command which you have to launch your application 
Comment= a small description for this application 
Icon= the directory for the icon which you want 

this file is a very simple one , there is a lot of options that you can add to it .

then you have to put it into this directory :

/usr/share/applications/

if you want to add an icon for this program add your icon to this directory :

/usr/share/pixmaps

and then configure the .desktop file to user this icon .(in the Icon field )

it will appear in the dash now , or you may have to logout and login again.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.