zocker-160 / SyncThingy

SyncThingy = Syncthing + simple tray indicator
GNU General Public License v3.0
100 stars 0 forks source link

Indicator tray icon invisible when autostarting Syncthingy (Manjaro, GNOME 46, X11) #28

Open P9k opened 1 week ago

P9k commented 1 week ago

I have the strange problem that the indicator tray icon is invisible (for a lack of a better term) when Syncthingy is automatically started on login: 2024-06-24_11-34-44_Syncthingy-Tray-Icon-1

As far as I can tell, Syncthing itself runs fine and also the tray icon can be interacted with via right-clicking:

2024-06-24_11-35-31_Syncthingy-Tray-Icon-2

2024-06-24-11-38-00_Syncthingy-Tray-Icon-4

If I stop Syncthingy and restart it manually, the icon looks normal: 2024-06-24_ 11-36-00_Syncthingy-Tray-Icon-3


Any idea what might cause this behavior?

My system runs Manjaro Linux with GNOME 46 and X11 as window manager. (Also in case it's of any relevance, I have the "Dash to dock" Gnome extension activated)

zocker-160 commented 1 week ago

This could be a tricky one to debug.

Based on what you are describing I would wildly guess that this could be caused by some weird race conditions where a service needs to be running before loading the tray in order to see the icon. Figuring out exactly where the issue is, will probably not be easy.

I personally would try to delay the start of SyncThingy and see if that changes anything. If yes then that would be even more evidence for my theory.

From the application's point of view there is sadly not much I can do, because for the autostart feature all I am doing is requesting the autostart entry to be generated using the xdg-desktop-portal API. Usually that creates a desktop file placed in .config/autostart/