Bug 375351

Summary: Opening apps is not reliable
Product: [Plasma] plasmashell Reporter: Roman Gilg <subdiff>
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs>
Status: RESOLVED FIXED    
Severity: normal CC: agurenko, jpsutton
Priority: NOR    
Version: master   
Target Milestone: 1.0   
Platform: Neon   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Roman Gilg 2017-01-20 22:18:19 UTC
Certain third party applications, which can be minimized to the system tray, are not working properly when trying to open their associated windows from the tray icon. Examples:

- Steam: left click not working, need to right click and raise from context menu
- Discord: the same + window is below certain other application windows (e.g. Chrome, Gimp) if these are maximized when doing the right click workaround
- Telegram: normally opens on left click, but sometimes only working after a few clicks (need to investigate further)
Comment 1 Roman Gilg 2017-02-02 13:25:42 UTC
Git commit 5d5518455d10406292495c6e6874eeeb7c4534f1 by Roman Gilg.
Committed on 02/02/2017 at 13:20.
Pushed by romangilg into branch 'master'.

[System Tray] SNI fallback to context menu on failing Activate

This patch primarily is aimed at applications using libappindicator.
For example:
* Steam
* Discord
* Deluge
libappindicator doesn't provide functionality for raising an application,
but only a context menu. Since it also doesn't even provide the corresponding
DBus method, we use the resulting error to try to display the context menu
instead, which matches the behaviour on Unity and Gnome.

Reviewers: #plasma, davidedmundson

Subscribers: plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D4301

M  +8    -1    applets/systemtray/package/contents/ui/items/StatusNotifierItem.qml
M  +8    -1    dataengines/statusnotifieritem/statusnotifieritemjob.cpp
M  +1    -0    dataengines/statusnotifieritem/statusnotifieritemjob.h
M  +14   -1    dataengines/statusnotifieritem/statusnotifieritemsource.cpp
M  +2    -0    dataengines/statusnotifieritem/statusnotifieritemsource.h

https://commits.kde.org/plasma-workspace/5d5518455d10406292495c6e6874eeeb7c4534f1
Comment 2 David Edmundson 2017-03-06 16:59:20 UTC
*** Bug 365308 has been marked as a duplicate of this bug. ***