masteroftheuniverse Apprentice
Joined: 20 Jan 2005 Posts: 259
|
Posted: Thu Mar 01, 2012 6:17 pm Post subject: hibernate: can't lock KDE4 |
|
|
Here's a script I want to run as root (as part of hibernate) to lock the screen (found https://forums.gentoo.org/viewtopic-p-6725095.html), since hibernate's built-in lock script doesn't handle KDE4:
Code: | #!/bin/bash
DISPLAY=:0.0
su -l <user> -c "/usr/lib/kde4/libexec/kscreenlocker --forcelock" |
And the output:
Code: | No protocol specified
kscreenlocker: cannot connect to X server :0.0
|
Any idea why X is complaining? |
|