Reply to topic

Logout of plasma 5 from command line

User avatar jzarecta
Registered Member
Posts
34
Karma
0
OS
Is there a command line instruction to logout from a session from the command line. I remember there was some on KDE4 <something>-logout or restart.
User avatar Rog131
Registered Member
Posts
828
Karma
10
Earlier: Shutdown kde correctly from command-line - viewtopic.php?f=66&t=88022

KWorkSpace Namespace Reference: https://api.kde.org/4.x-api/kde-workspa ... Space.html

Still working with the KF5

=>
Confirm logout:
Code: Select all
$ qdbus org.kde.ksmserver /KSMServer logout 1 3 3


Logout without confirmation:
Code: Select all
$ qdbus org.kde.ksmserver /KSMServer logout 0 3 3
User avatar mjobin
Registered Member
Posts
38
Karma
0
OS
this is giving me this error

Code: Select all
[[email protected] ~]$  qdbus org.kde.ksmserver /KSMServer logout 1 3 3
Cannot find '.logout' in object /KSMServer at org.kde.ksmserver
[[email protected] ~]$


going to try whats on this http://unix.stackexchange.com/questions ... l-via-dbus
joder
Registered Member
Posts
17
Karma
0
OS
loginctl terminate-user "your username here"
devurandom
Registered Member
Posts
7
Karma
0
joder wrote:loginctl terminate-user "your username here"


Beware that this will usually also kill all programs associated with that session, including those running in the background, like `tmux` or `screen`.

 
Reply to topic

Bookmarks



Who is online

Registered users: Baidu [Spider], Bing [Bot], dcihon, Google [Bot], Sogou [Bot]