Tell me more ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am accessing the machine (OpenSuse 11 with KDE) over NX.

I cannot use the Alt-Ctrl-Del shortcuts as it is captured by my system. The regular logoff button just ends the NX session without ending the KDE session. I cant call kdm restart as I have no root privileges.

Other wild guesses like logout and exit do not work either, the first one complaining about not being in a login shell and the second one just closing the console.

My shell-fu is weak, so any help is appreciated.

share|improve this question

2 Answers

You can send a logout command via dbus to KDE, which should (if it can) terminate the session.

qdbus org.kde.ksmserver /KSMServer logout 0 0 0
share|improve this answer

Have found this post containing multiple ways to achieve log out from shell. Using skill -KILL -u 'whoami' works nicely

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.