[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 --- Comment #12 from Ilab Sentuser --- Hello, I missed the notification or something so I am late for this. But I think I can confirm what Eric Hoffman said about applications started with a shortcut not being restored and ones being started from the menu being restored correctly. Just tried it twice and yup. I can't recall now but that also makes sense why sometimes they do restore, probably times I started them from the menu instead of shortcuts. Will try and see if I can find something in the code about this problem that I can discern, maybe check his theory. Will try to do it this weekend. Will update if I come up with anything as I had already surrendered with this issue, but now I have hope hahaha. Regards. -- You are receiving this mail because: You are watching all bug changes.
[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 --- Comment #11 from Khanich --- (How did I not get an email about it? I am in the CC list. Anyway.) I can't really confirm your observation about only non-keyboard started applications restoring, On my end I always start Firefox via the task bar. It never gets restored. Applications like Dolphin and Konsole, which I always start via shortcut, get restored sometimes, but very rarely and never predictable. Still an X session btw. -- You are receiving this mail because: You are watching all bug changes.
[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 --- Comment #10 from Eric Hoffman --- Another point I noticed. kglobalaccel5 is under systemd process. What I think is happening is that when I press a shortcut key (which I guess is set as a global accelerator), the application is launched by kglobalaccel5, and detached from it (it's parent PID becomes systemd). That's why you see those hotkey started application under systemd. When closing the plasma session, I guess that the affected applications just does not receive the message to store the session information. This is just a theory, I don't really know how plasma is handling sessions start/stop. -- You are receiving this mail because: You are watching all bug changes.
[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 --- Comment #9 from Eric Hoffman --- To add, using ps -afx, I can see that the applications I start manually are created with process hierarchy sddm-->sddm-helper-->startplasma-x11-->plasma_session-->xembedsniproxy-->plasmashell--> While the ones I start from keyboard shortcut has the process hierarchy systemd--> Example "ps -aux" output (shoing just the tree portion): /usr/bin/sddm \_ /usr/lib/sddm/sddm-helper --socket /tmp/sddm-authea9cb49f-0c5e-4275-8196-80d0 \_ /usr/bin/startplasma-x11 \_ /usr/bin/plasma_session \_ /usr/bin/xembedsniproxy \_ /usr/bin/plasmashell \_ /usr/bin/konsole \_ /bin/bash /usr/lib/systemd/systemd --user \_ /usr/bin/konsole | \_ /bin/bash | \_ ps -afx \_ /usr/bin/dolphin -- You are receiving this mail because: You are watching all bug changes.
[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 Eric Hoffman changed: What|Removed |Added CC||ehoff...@videotron.ca --- Comment #8 from Eric Hoffman --- I actually posted a comment to an issue for the Konsole app, but I think that what I found is more general, as this seems to affect multiple applications. What I found is that for applications which I created keyboard shortcut, if I start those applications using the shortcut I programmed, then those applications are not restored on restart. Example, I go to KDE menu editor, and set the Konsole app to start with keyboard shortcut "CTRL-ALT-T". And I set Dolphin to start with "Meta-E" (Win-E). I then start a few instances of Konsole and Dolphin using CTRL-ALT-T and Meta-E, and I start a few more instances by going directly to the KDE menu and starting those applications from the KDE menu. I logout, log back in. Then, all the instances started from keyboard shortcut are not restored. While all the ones started manually does restore properly. What I noticed also during logout, all the applications started from the main menu (the ones that get properly saved/restored) closed promptly, while the ones started from keyboard shortcut, I saw the window frame disappear, while the client area stayed on screen for half a second (before presumably getting terminated). -- You are receiving this mail because: You are watching all bug changes.
[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 --- Comment #7 from Khanich --- Created attachment 149676 --> https://bugs.kde.org/attachment.cgi?id=149676=edit xorg-session-log -- You are receiving this mail because: You are watching all bug changes.
[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 --- Comment #6 from Khanich --- Created attachment 149675 --> https://bugs.kde.org/attachment.cgi?id=149675=edit ksmserver file -- You are receiving this mail because: You are watching all bug changes.
[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 Khanich changed: What|Removed |Added CC||khanich.opensou...@gmx.de --- Comment #5 from Khanich --- Hello, I actually have the same (or similar) problem, sometimes it saves the session, sometimes it doesn't. It's also not always every application which gets saved. And Flatpak apps don't seem to work at all. Furthermore, in the "kwin_saved_at_previous_logout_" file, even though it wasn't open, I find gedit. Although yes, the "last change" time was the last logout. (I installed gedit to find out if only Qt apps gets saved, but that worked, so I closed it again. Then I noticed that even Qt apps don't work all the time.) I use openSUSE Tumbleweed with X11 session. -- You are receiving this mail because: You are watching all bug changes.
[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 --- Comment #4 from Ilab Sentuser --- A crucial piece of information that I missed, I am using X11. Also, currently Kate and Dolphin capability to being restored has returned, as per my testing it seems to be related to the way in which the system is terminated, I am still working on it, but I think that there is a difference in the way sessions are saved when shutting down/rebooting/logging out that has a significant effect on how/why ksmserver sometimes succeeds in saving their session information. Might be related to timeouts before killing those processes. Can't be sure yet. -- You are receiving this mail because: You are watching all bug changes.
[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 Nate Graham changed: What|Removed |Added CC||n...@kde.org --- Comment #3 from Nate Graham --- Are you using the Wayland session, or X11? -- You are receiving this mail because: You are watching all bug changes.
[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 --- Comment #2 from Ilab Sentuser --- Created attachment 149389 --> https://bugs.kde.org/attachment.cgi?id=149389=edit compressed session folder contents -- You are receiving this mail because: You are watching all bug changes.
[ksmserver] [Bug 454726] ksmserver does not store certain apps session information
https://bugs.kde.org/show_bug.cgi?id=454726 --- Comment #1 from Ilab Sentuser --- Created attachment 149388 --> https://bugs.kde.org/attachment.cgi?id=149388=edit session log file -- You are receiving this mail because: You are watching all bug changes.