Ximi1970 / systray-x

SysTray-X: A system tray extension for Thunderbird. Needs both the addon AND the companion app installed to work. Will not work with TB flatpaks or snaps.
Mozilla Public License 2.0
213 stars 15 forks source link

Thunderbird always restores to the KDE activity it was opened on originally #181

Open katonagl opened 5 months ago

katonagl commented 5 months ago

Describe the bug I use activities in KDE6. After starting Tb (with the x11 workaround) and minimizing it to tray, when I switch to another activity and click the tray icon, it jumps to the original activity where Tb was opened. Previously with KDE5 it was working fine.

To Reproduce

  1. Setup multiple activities in KDE6.
  2. Open Tb with x11 workaround so systray-x works
  3. Minimize Tb to tray
  4. Switch activity
  5. Open from tray by clicking tray icon

Expected behavior Tb should open on the current activity

Desktop (please complete the following information):

Additional context I start Tb with Exec=env GDK_BACKEND=x11

katonagl commented 5 months ago

More testing: I have activities and also multiple desktops for each activity. Restoring Tb keeps the desktop number, but on wrong activity. So if Tb is started on Activity1 and then restored when on Activity2 Desktop2, it will restore to Desktop2 of Activity1. If restored on Activity2 Desktop3, it will be restored to Activity1 Desktop3.

I have tested this also with an x11 session with the same result.

Ximi1970 commented 5 months ago

This behavior is conform the "standard" activities. The Thunderbird is "locked" at the activity where it was started. So the systray-x icon will start TB in that activity. If you want TB in all activities you need to tell the activity manager you want this. This can be done by enabling the REAL titlebar of thunderbird again, Settings -> Language & Appearance -> Clear the checkmark at Hide system window titlebar. Restart TB . Then right click on the upper left TB icon. Select "Show in activities" and select "All activities". You can disable the titlebar again I hope. Maybe there is another way but I do not use this feature at all...

Ximi1970 commented 5 months ago

Nope, you must leave the system titlebar enabled.

katonagl commented 5 months ago

Yes, it works. However, is it possible to change the activity of Tb by systray-x when restoring? Maybe it is not a bug then (however I remember as it was working previously, but maybe I am wrong), but a feature request then. It would be really useful if systray-x could manage the activities this way, so it does not have to appear on all activities.

Ximi1970 commented 5 months ago

I also tested it in 15.5 but it has the behavior as in Tumbleweed. I also see the manager does not store the wanted behavior and will reset it every time you restart TB. Maybe they changed the activities handling a bit? I am not going to add things to repair a "broken" feature of KDE.

Ximi1970 commented 5 months ago

You could try Left upper icon-> More actions -> Configure special application settings -> and add a activity setting?

katonagl commented 5 months ago

It works, I have tried apply initially and selected all activities. It is a kind of workaround, however still frustrating to have Tb on all activities, so I have to minimize to remove it from other activities. Nevertheless temporarily makes it usable.