App indicator adds an entry for each snap launch

Bug #1600140 reported by David Planella
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Snappy
Fix Released
Undecided
Unassigned
snapd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Snaps that use the app indicator area via Qt add an new entry to it every time they are launched, instead of reusing the existing entry.

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

Some research:

- Uses http://doc.qt.io/qt-5/qsystemtrayicon.html
- didrocks mentions that this might be related to bug 1600136, that is /tmp is not being reused between run instances

David Planella (dpm)
description: updated
Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

Ok, so to be a little bit more verbose on the issue there,

What happens if for the indicator to apps communication, a socket is created and stamped in /tmp. That enabled in case of app crash to create a new indicator appmenu entry.

What I think is happening is, as with snapd, we create a new /tmp everytime (and not being accessible to the system with the same address, see other bug report), a new instance is created.

Revision history for this message
Didier Roche-Tolomelli (didrocks) wrote :

(everytime as "everytime an instance is executed")

Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in snapd (Ubuntu):
status: New → Confirmed
Revision history for this message
John Lenton (chipaca) wrote :

We no longer create a new /tmp per run, so this should be fixed. Please reopen if not.

Changed in snapd (Ubuntu):
status: Confirmed → Fix Released
Changed in snappy:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.