Right now the way desktop files work is that you put them in
meta/gui/*.desktop and they will get installed into
/var/lib/snapd/desktop/applications.

When running a snap I could introspect that dir and look if snap.command
is part of the /var/lib/snapd/desktop/application/*.desktop and if so,
set BAMF_DESKTOP_FILE_HINT.

However what about the case when two desktop files reference the same
command with different parameters? Eg: "game.desktop:Exec=game" and
"game-leveleditor.desktop":Exec=game --level-edior" (or libreoffice
--writer which is a more real-live example).

*If* doing a naive matching as outlined above helps I'm happy to do it.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1643910

Title:
  BAMF_DESKTOP_FILE_HINT not set in correct place for unity7

To manage notifications about this bug go to:
https://bugs.launchpad.net/snappy/+bug/1643910/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to