[kde] [Bug 424092] closing kde session by key

Christoph Feck bugzilla_noreply at kde.org
Mon Aug 3 17:08:31 BST 2020


https://bugs.kde.org/show_bug.cgi?id=424092

--- Comment #3 from Christoph Feck <cfeck at kde.org> ---
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/

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Unassigned-bugs mailing list