Customisability of Logout-Screen

For a kiosk system I am trying to change the behaviour of the session logout screen. Specifically, I want to increase the seconds until automatic logout (from the current 30 seconds to 120 seconds) and add a text to the logout screen.

Background is that upon logout of my kiosk system I intend to delete all of the user’s data (in particular the home directory). But for that I intend to warn the user on the logout screen about what’s going to happen.

I could theoretically write a custom logout screen and override the plasma screen but it’s unlikely that that’s going to have the same fidelity. If at all possible I’d rather customise the existing plasma one.

From my research, I could in principle customize KDE’s locale and add my desired text although that might be a rather involved process. Furthermore, from looking at the code it might be that the 30 seconds until logout are hardcoded (plasma-workspace/lookandfeel/org.kde.breeze/contents/logout/Logout.qml at 9a876e4f1b4abc4242828498d075ad3b9bbce873 · KDE/plasma-workspace · GitHub). But then again I’m not familiar with the KDE source code so that might just be a fluke.

Any advice would be appreciated!

(note: I am writing this for work and its a few hours before I leave for weekend, so I might respond on monday at the earliest, thanks!)

i would just disable the builtin in logout screen in settings and then script up something in bash using kdialog that accomplishes what you want.

then when the user completes the scripted part of the exit screen, then it’s done done and logs them out.

Yeah, I was thinking that this might be the way to go. Thanks for the feedback.

Of course, if going that route I have to find a way to override the Logout-Buttons in the Plasma application launcher. Users will definitely be looking for the logout method there. So it’s (1) remove superflious Logout-Buttons (like hibernate) and (2) override which application is run when the remaining button is pressed, or (3) remove all Logout-Buttons and add a visible Widget/Shortcut to the launcher.

i think 3) would be the easiest but have no idea how to get your custom script to show up in the power / session area of the menu.

the Power / Session menu item is not shown when you go into edit applications so i don’t know where the application menu is getting these entries or their icons.

a brief search turned up nothing so here is the source code

maybe somebody else knows where this these things live and if they can be modified / overridden.