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?
EDIT:
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?
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: