View Full Version : [kubuntu] lock screen from command line

December 13th, 2008, 06:04 AM
I'm trying to lock the screen from the command line. I've tried two commands that I've found in other threads, but neither works:

leptogenesis@leptogenesis-laptop:~$ dcop kdesktop KScreensaverIface lock
call failed
leptogenesis@leptogenesis-laptop:~$ kdesktop_lock
bash: kdesktop_lock: command not found

What should I use to lock the screen in KDE4?

December 13th, 2008, 03:20 PM
Finally found it:

qdbus org.freedesktop.ScreenSaver /ScreenSaver Lock

February 4th, 2011, 05:39 PM
Thank you!!! That was exactly what I've been searching for!