Martchus / syncthingtray

Tray application and Dolphin/Plasma integration for Syncthing
https://martchus.github.io/syncthingtray/
Other
1.57k stars 43 forks source link

Orphan plasmoid appears on system tray - KDE #110

Closed maguilara closed 2 years ago

maguilara commented 2 years ago

Relevant components

Environment and versions

Bug description An orphan plasmoid appears on the system tray after installing STT andlogging out from the current session. Cannot be deactivated/closed by any means. It will stay even after starting the STT process., coexisting 2 or more tray icons if more STT process are instanced. Will only disappear after uninstalling STT and logging out from the current session. Steps to reproduce

  1. Install STT
  2. Log out from current session.
  3. Log in, STT tray will appear even when STT hasn't been invoked.

Expected behavior Tray icon should only appear when process is running

Screenshots Showin both plasmoids, the one working with the stt process can be closed image The other one can't be closed image Even when no STT process are running, the orphan plasmoid stays there image

Additional context Add any other context about the problem here.

Martchus commented 2 years ago

Does this help? https://github.com/Martchus/syncthingtray/issues/96#issuecomment-865355073

Btw, I'm not sure why the icon is shown by default and why the setting is sometimes even reverted. Maybe some Plasma devs would know.

maguilara commented 2 years ago

Does this help? #96 (comment)

If I choose "Always hidden", the icon does disappear, but I want to use it "Show when relevant" (e.g. to know that ST has been started successfully). I think that for some reason is hardcoded into the system tray even when no STT is running,

Martchus commented 2 years ago

The states when the Plasmoid is considered "relevant" are not hard-coded. You can select them in the Plasmoid's settings.

maguilara commented 2 years ago

I did something that made the orphan plasmoid disappear. The plasmoid's settings you mention are not present in the "functional" tray icon, yet they are in the "orphan" tray icon. I toggled all the states just to test them and it's now gone from my system tray. Is this how is meant to work? Not sure if this is the solution or just a workaround.

Martchus commented 2 years ago

First I'd like to note that the Plasmoid being displayed within the System Tray Plasmoid is a Plasma feature and does not mean this Plasmoid is orphaned (whatever this exactly means in this context). If you don't want the Plasmoid being displayed in that way you can disable it like described in the previously liked comment. If you only want to display it in certain states you can also configure it that way. It is intended that the Plasmoid-specific configuration is not accessible from the stand-alone tray application because it is stored in Plasma's config per Plasmoid instance.

By the way, under Arch Linux + Plasma desktop I recommend to actually use the Plasmoid instead of the stand alone application. That also means starting Syncthing as systemd user unit and enabling the systemd integration of the Plasmoid (instead of using the launcher which is more intended for non-systemd systems like Windows). I'd still disable the Plasmoid within the System Tray Plasmoid and rather add it separately to be able to increase its size.

Martchus commented 2 years ago

No response so I cannot help any further.