| Summary: | Add "logout" option after inactivity period | ||
|---|---|---|---|
| Product: | [Applications] systemsettings | Reporter: | Christophe Riolo Uusivaara <rosslaew> |
| Component: | kcm_powerdevil | Assignee: | Plasma Bugs List <plasma-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | wishlist | CC: | kde, kde, nate |
| Priority: | NOR | ||
| Version First Reported In: | 5.18.5 | ||
| Target Milestone: | --- | ||
| Platform: | Arch Linux | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
|
Description
Christophe Riolo Uusivaara
2020-06-07 18:52:09 UTC
Seems entirely reasonable. Are these idle sessions screen locked? In theory it should be queryable with logind, they will have the lockedHint set to true. I think that requires a bit of work our side, but I am more than happy to support that. From logind you can also violently kill the session which would work for your scripts. We cannot do a graceful logout after a period of inactivity. Applications can cancel or pause the process with the "you have unsaved changes blah blah". Putting this in our UI at a KDE level would then be problematic. FWIW macOS offers this feature, and what they do is show a dialog with a 60 second timeout, at which point the app is killed. I guess they assume that if you enable this feature, your goal of logigng out of the system after inactivity trumps potential data integrity. Git commit 72b1e92e115168512bb01f3df56b2ab1a7887c01 by David Edmundson. Committed on 20/08/2020 at 07:39. Pushed by davidedmundson into branch 'master'. Update logind's SetLockedHint SetLockedHint exists so that an external system can determine if a session is locked or not without having to access the user's session bus. We support logind's requesting us to lock/unlock so it makes sense to support this also. M +2 -0 ksldapp.cpp M +20 -4 logind.cpp M +9 -0 logind.h https://invent.kde.org/plasma/kscreenlocker/commit/72b1e92e115168512bb01f3df56b2ab1a7887c01 >Are these idle sessions screen locked? Assuming this was true: The commit above adds support for easily querying locked state for another user making it easier to externally script. This should allow > Being able to poll the activity status of those users would be good already as I could write a cronjob that would do the rest. --- Marking as needsinfo so you can reply if anything is missing. Dear Bug Submitter, This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information. For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging If you have already provided the requested information, please mark the bug as REPORTED so that the KDE team knows that the bug is ready to be confirmed. Thank you for helping us make KDE software even better for everyone! Hello, Indeed the idle sessions are locked so if it can be queried with logind it works for me! Thank you for the work, Cheers, Christophe Riolo Uusivaara cool cool |