almostearthling / when-command

When is an automation tool that aims at being flexible and cross platform
http://almostearthling.github.io/when-command/
BSD 3-Clause "New" or "Revised" License
68 stars 2 forks source link

System tray menu not showing on Debian 12 #113

Open almostearthling opened 5 months ago

almostearthling commented 5 months ago

On Linux (namely on Debian 12) the when start command correctly loads, starts the underlying whenever instance, and displays the system tray icon. However when the icon is right-clicked, no menus are shown and no interaction is possible with the application.

almostearthling commented 5 months ago

As per pystray documentation this is the behaviour of the Xorg backend, which is enabled when the appindicator and gtk backends fail. However, also making the system site-packages directories available in the module path does not fix the problem: when both python3-gi and libayatana-appindicator3-1 are made available to pystray, no tray icon is shown at all.

almostearthling commented 4 months ago

Since (most unfortunately) GNOME deprecates indicators, probably the solution is to make the application available as a background application on Linux when the AppIndicator protocol is not supported. The Linux background application should:

Looks a bit overcomplicated for a desktop app, but apparently the GNOME designers like this kind of stuff.