https://bugs.kde.org/show_bug.cgi?id=497520

--- Comment #18 from Jonas E <j...@mailbox.org> ---
Both of the fixes DO NOT WORK FOR EVERYTHING - rather they seem to specifically
fix issues with Mozilla setting strange WM_COMMAND Atoms in X11 
Other snap apps set WM_COMMAND to the actual command, and restore correctly
(e.g. GIMP)

Akregator and Konsole Sessions NEVER RESTORE, and for them nothing is written
in  ksmserverrc at all


Code hints for the snap/Mozilla issue:
ksmserver seems to fallback to the legacySession style of saving for (at least
some, e.g. Mozilla) snap apps.
On git, this is in the plasma-workspace/ksmserver/legacy.cpp.

For the save, the window WM_COMMAND is retrieved (with
KSMServer::windowWmCommand; legacy.cpp l. 295ff.
- Unfortunately, the WM_COMMAND X11 Atom set by snap/Mozilla is wrong
(firefox_firefox, thunderbird-esr), as in it does not match the executable name
-> the window is not restored.

There are already some changes made for Mozilla, maybe it is possible to add
the new miss-reportings of WM_COMMAND from snap-based Mozilla there too

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to