SUMMARY closing kde session by key should be possible STEPS TO REPRODUCE 1. 2. 3. OBSERVED RESULT EXPECTED RESULT SOFTWARE/OS VERSIONS Windows: macOS: Linux/KDE Plasma: 5.19.3 (available in About System) KDE Plasma Version: KDE Frameworks Version: Qt Version: ADDITIONAL INFORMATION A computer session under opensuse 15.2 can only be closed using the mouse: starter > system > shutdown It is desirable to be able to close using the keys only. halt or shutdown from the terminal do not help as then not all processes started by mouse action start here, too so some processes are skipped this way. When clicking on shutdown a file (command) must be activated. So it would be sufficient to state somewhere which command can be used instead of the mouse clicks. Then e.g. this command could be used in batch files as well.
It is, try Ctrl+Alt+Delete. :) You can see all the shortcuts at System Settings > Shortcuts > Session management.
(In reply to Nate Graham from comment #1) > It is, try Ctrl+Alt+Delete. :) You can see all the shortcuts at System > Settings > Shortcuts > Session management. Thank you for your answer. The shortcut Ctrl+Alt+Delete is known to me. But two questions remain for me: 1. In good old times windows had to be defragmentated regularly. Now this is done automatically, in linux, too. But I read somewhere that e.g. the command 'halt' does NOT do it, only the click sequence starter > session > shutdown would do it. Is Ctrl+Alt+Delete _completely_ equivalent to the click sequence above? 2. I would like to have a command for the _complete_ shutdown process within a script. What do write there? Albrecht
It is best to ask such questions in a forum instead of a bug tracker, but let me answer anyway. First, you are mixing up defragmentation, filesystem consistency, and applications needing to save state before shutdown. The filesystem will always be consistent, as long as you don't cut the power before the system has turned off itself. About the command-line shutdown tools, such as 'halt', 'poweroff', and 'shutdown': These do not ask applications to save state. All processes are terminated without giving them a chance to ask the user. To shutdown a graphical session from the command line, use a DBus command for the session manager: qdbus org.kde.ksmserver /KSMServer logout 1 2 3 If you replace 1 with 0, then it won't ask, i.e. proceed as if you had clicked Shutdown. For more information, see e.g. https://www.reddit.com/r/kde/comments/70hnzg/command_to_properly_shutdownreboot_kde_machine/