So...

The problem for generic apps should be fixed. You can see some examples here:
 - https://github.com/3v1n0/indicators-examples-snaps

Basically we export to unity the proper absolute icon path, unless that's 
readable (so basically it can be everywhere inside the SNAP but in /tmp).
They're using remote parts indicator-<toolkit>, although I hope to include this 
in the desktop launchers by default.

As for some QT apps that don't use appmenu-qt, until we don't fix the Qt 
upstream implementation, the only workaround is to use a different TEMPDIR for 
them, see 
https://github.com/sergiusens/telegram-snap/issues/2#issuecomment-261139307.
When bug #1620442 is fixed, it might be ok to set TEMPDIR to XDG_RUNTIME_DIR 
for a such snap.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to sni-qt in Ubuntu.
https://bugs.launchpad.net/bugs/1600136

Title:
  App indicator does not show icon for Qt apps or with custom icons

Status in Snappy:
  New
Status in snapd package in Ubuntu:
  Confirmed
Status in sni-qt package in Ubuntu:
  In Progress

Bug description:
  Snaps that use the app indicator area via Qt can't display their icon
  there.

  Steps to reproduce and screenshot:
  https://github.com/nuttyartist/notes/pull/77

  Some research:

  - Uses http://doc.qt.io/qt-5/qsystemtrayicon.html
  - The indicator icon is created under /tmp under a randomly generated 
directory name

  didrocks mentions also:

  1. The application says "this is my menu, and here is my icon at that 
address", the address being /tmp/blablabla
  2. appindicator receives the bus messages
  3. and says "let's have a look at this icon at that address"
  4. BUT! /tmp in the snap is different form system /tmp

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

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to