Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
hibernate: can't lock KDE4
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
masteroftheuniverse
Apprentice
Apprentice


Joined: 20 Jan 2005
Posts: 259

PostPosted: Thu Mar 01, 2012 6:17 pm    Post subject: hibernate: can't lock KDE4 Reply with quote

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?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum