Bug 496140 - `~/.local/state/plasmasessionrestorestaterc` is not updated on logout
Summary: `~/.local/state/plasmasessionrestorestaterc` is not updated on logout
Status: RESOLVED WORKSFORME
Alias: None
Product: plasmashell
Classification: Plasma
Component: Session Management (other bugs)
Version First Reported In: 6.2.3
Platform: Other Linux
: NOR normal
Target Milestone: 1.0
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-11-11 18:18 UTC by Cristian Le
Modified: 2024-12-29 03:47 UTC (History)
3 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
journalctl.log (499.28 KB, text/x-log)
2024-11-29 08:51 UTC, Cristian Le
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cristian Le 2024-11-11 18:18:00 UTC
SUMMARY
Currently I have a file `~/.local/state/plasmasessionrestorestaterc` that does not seem to be updated after a system shutdown and I wish to hunt down the source of this issue because I think it's a symptom of a more basic issue. Basically at some point I had a session with 3 konsole open, and now the "Session restore" option is set to `On last logout`, but no matter what the state was then or if it got shutdown gracefully or not, it always restores the state that I currently see right now in the `~/.local/state/plasmasessionrestorestaterc`.

So the question I have is when is the `~/.local/state/plasmasessionrestorestaterc` supposed to be updated, and how can I debug what failures are causing it to not update it?


SOFTWARE/OS VERSIONS
Linux/KDE Plasma: Fedora 41
KDE Plasma Version: 6.2.3
KDE Frameworks Version: 6.8.0
Qt Version: 6.8.0

ADDITIONAL INFORMATION
One clue I might have, although not sure how true it is, I think this has started after I've installed the tuxedo drivers, and I think there are some errors reported there at the shutdown screen, but I don't know how to capture those
Comment 1 Nate Graham 2024-11-13 18:22:23 UTC
Can you clarify what you mean when you said you "installed the tuxedo drivers"? Typically those drives would be intended to be used on TuxedoOS, but you say you're on Fedora. Installing one distro's drivers on another distro is generally not going to work unless you're a system-builder-level expert.
Comment 2 Cristian Le 2024-11-13 18:44:29 UTC
Tuxedo also provides their drivers in a dnf form using kmod, rebuilding the kernel, similar to nvidia's. Those are available on copr [1] and on their official website [2]

[1]: https://copr.fedorainfracloud.org/coprs/kallepm/tuxedo-drivers/
[2]: https://www.tuxedocomputers.com/en/Add-TUXEDO-software-package-sources.tuxedo
Comment 3 Bug Janitor Service 2024-11-28 03:46:39 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 4 Cristian Le 2024-11-28 16:02:35 UTC
I am removing the NeedsInfo because I don't know what else to answer on this one.
Comment 5 David Edmundson 2024-11-28 18:55:17 UTC
>how can I debug what failures are causing it to not update it?

You can run:

 QT_LOGGING_RULES=org.kde.plasma-fallback-session-restore.debug=true /usr/lib/libexec/plasma-fallback-session-save 

it should update the file.
Comment 6 Cristian Le 2024-11-29 08:51:02 UTC
Created attachment 176212 [details]
journalctl.log

Thanks David for the hint. Yes the command when executed manually does create an appropriate restore state of the current state, but this still doesn't resolve why it doesn't work properly when shutting down. I would expect either this scriplet to be run  at shutdown either before all applications are closed in which case it will save the current session, or run it at the end in which case it would be clean, neither of which is what's happening here.

I've looked around on how to get the full `journalctl` log and I've used `-b -1` and found quite a lot of failures reported, although not sure if some are relevant to this symptom.
Comment 7 Bug Janitor Service 2024-12-14 03:46:43 UTC
๐Ÿ›๐Ÿงน โš ๏ธ This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information, then set the bug status to REPORTED. If there is no change for at least 30 days, it will be automatically closed as RESOLVED WORKSFORME.

For more information about our bug triaging procedures, please read https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging.

Thank you for helping us make KDE software even better for everyone!
Comment 8 Bug Janitor Service 2024-12-29 03:47:25 UTC
๐Ÿ›๐Ÿงน This bug has been in NEEDSINFO status with no change for at least 30 days. Closing as RESOLVED WORKSFORME.