Bug 476168

Summary: Add the ability to close system tray app by middle click
Product: [Plasma] plasmashell Reporter: geqch0akc
Component: System Tray widgetAssignee: Plasma Bugs List <plasma-bugs-null>
Status: RESOLVED INTENTIONAL    
Severity: wishlist CC: materka, nate
Priority: NOR    
Version First Reported In: 5.27.8   
Target Milestone: 1.0   
Platform: Ubuntu   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description geqch0akc 2023-10-27 17:56:35 UTC
Generally I find it anoing to close a system tray app when my computer is lagging.
Comment 1 Nate Graham 2023-10-30 20:00:29 UTC
It's an interesting idea. But I think it would be quite disruptive, and I can foresee people accidentally killing apps all the time. We could add a confirmation dialog, but then it wouldn't solve the problem of wanting to kill apps when the system is lagging, since the dialog would just lag too.

I think for this use case, you should close the app from its Task Manager icon. If it doesn't have one because it has a system tray icon instead, well, now you've learned one of the many reasons why system tray icons for apps are silly and problematic. In this case you can close the app from the System Monitor, or invoke the systemwide "kill a window", invoked by Meta+Ctrl+Escape if System Monitor won't load.
Comment 2 Konrad Materka 2023-10-30 21:51:33 UTC
Middle click is already reserved for Secondary Action:
https://www.freedesktop.org/wiki/Specifications/StatusNotifierItem/StatusNotifierItem/

Application can implement it for a close action. Some Plasmoids use it, for example Volume uses middle click for mute, Notification to turn off notification etc.
Comment 3 geqch0akc 2023-10-30 21:53:42 UTC
wont work get it ok