Dynamic quicklist: how to reference to .desktop file? (installed in /opt)
Posted
by
Nick Lemaire
on Ask Ubuntu
See other posts from Ask Ubuntu
or by Nick Lemaire
Published on 2012-06-28T14:58:52Z
Indexed on
2012/06/28
15:24 UTC
Read the original article
Hit count: 210
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?
© Ask Ubuntu or respective owner