pop-os / cosmic-applets

WIP applets for cosmic-panel
GNU General Public License v3.0
215 stars 86 forks source link

Support system tray icons for Electron Applications #321

Closed imbev closed 7 months ago

imbev commented 7 months ago

Some application icons are missing from the system tray. This appears to correspond to whether the application uses Electron.

Present: qBittorrent (Not Electron)

Missing: Element, Discord (Electron)

All applications tested were installed via Flatpak

imbev commented 7 months ago

Tray icon uses StatusNotifierItem by default, when it is not available in user's desktop environment the GtkStatusIcon will be used instead.

https://www.electronjs.org/docs/latest/api/tray

leviport commented 7 months ago

Is this the same issue as https://github.com/pop-os/cosmic-applets/issues/165 ?

imbev commented 7 months ago

Is this the same issue as #165 ?

Most likely. A generalized title would be "Status area applet: system tray support for StatusNotifierItem, GtkStatusIcon"

ids1024 commented 7 months ago

The latest version of cosmic-applets should be working with Electron apps, after some recent fixes. Unless there are issues with certain specific apps.

imbev commented 7 months ago

This now works properly following an update and restart.