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'd like to know which folder the Unity Launcher .desktop files are stored in, as they're not anymore in /.gconf/desktop and I need to add a custom application to the launcher bar (adding it in /usr/share/applications doesn't seem to be enough).

Where are the Unity Launcher .desktop files?

share|improve this question

5 Answers 5

up vote 29 down vote accepted

Globally in /usr/share/applications, locally in ~/.local/share/applications.

If you want to add a custom launcher, create it in ~/.local/share/applications, make it executable, drag and drop it on the launcher*, and finally pin it (right-click on the launcher item → Keep In Launcher).

*) Opening it using Nautilus doesn't seem to do the trick.

share|improve this answer
    
Actually, this way the custom icon is not shown but the application icon is instead. Any ideas on how to fix that? I also tried adding the .desktop through gconf-editor but I haven't found the Unity entry. –  Tigull May 7 '11 at 8:24
    
You are right, that's probably a bug. Instead you can just drag and drop the .desktop file onto the launcher. To find the favorites list, install the dconf-tools package and run dconf-editor. The list is stored under desktop → unity → launcher. –  htorque May 7 '11 at 8:32

cd ~/.local/share/applications is the 1st place that is look in.

Examples from my directory that I used to add quicklists:

~/.local/share/applications$ ls
banshee.desktop           gnome-terminal.desktop
chromium-browser.desktop  mimeapps.list
firefox.desktop           nautilus-home.desktop
gedit.desktop             ubuntu-software-center.desktop
share|improve this answer

I actually found a fix myself! It is necessary to create an entry in alacarte. To customise the icon you must manually edit the icon again from alacarte.

share|improve this answer
    
That doesn't sound like the right solution, but more a workaround for a bug in either the launcher or the original .desktop file. –  JanC Jun 9 '11 at 10:37

Unity 2D looks for .desktop files in the /usr/share/applications directory. This can be found by using the following in the Terminal:

locate firefox.desktop

For me it worked by adding one of the launchers that was already there (eg. gimp.desktop) using the following in the Terminal

gconf-editor

to add an entry to the favorites list under desktop/unity-2d/launcher.

share|improve this answer

better answer found here: http://askubuntu.com/a/157288

from: How do I add an icon to the unity dock (not drag and drop)?

I needed to change the unity bar list and finally found this

share|improve this answer

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.