Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm trying to create a dynamic quicklist for an application I'm developing in quickly.

This is the line of code I use to try and connect to the .desktop file:

self.launcher = Unity.LauncherEntry.get_for_desktop_id("my-app.desktop")

For testing purposes, I've found that when using quickly run I should copy the .desktop file to ~/.local/share/applications. When I do this, the quicklist shows up correctly.

However, when packaging my app using quickly package --extras, and installing this package, I get a launcher without quicklist.

Does this have something to do with my app being installed in /opt? Meaning my desktop file is located somewhere else? Should I use another reference to the desktop file?


I've tried to find the .desktop file. But I can't seem to locate it.. Does this mean I should generate one myself? and that I should link to that file?

share|improve this question
up vote 1 down vote accepted

It seems when you package with the --extras parameter, the .desktop file gets a prefix. So I needed to reference to the desktop file like this:

self.launcher = Unity.LauncherEntry.get_for_desktop_id("extras-my-app.desktop")
share|improve this answer
I had a similar question regarding the use of the get_for_desktop_id() command. Should it be extras-.desktop or just *.desktop? I stumbled across the ARB Guidelines and they make it pretty clear that it should be extras-.desktop. – John Watson Jul 2 '12 at 0:19

Your Answer


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.