LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Desktop (http://www.linuxquestions.org/questions/linux-desktop-74/)
-   -   Lock gnome-screensaver from cli? (http://www.linuxquestions.org/questions/linux-desktop-74/lock-gnome-screensaver-from-cli-600035/)

DittoAlex 11-16-2007 12:53 AM

Lock gnome-screensaver from cli?
 
How do I accomplish this?

gilead 11-16-2007 01:18 AM

I don't use gnome, but what happens when you run gnome-screensaver from the cli?

DittoAlex 11-16-2007 01:19 AM

$ gnome-screensaver

(gnome-screensaver:21617): gnome-screensaver-WARNING **: couldn't connect to session bus: Failed to connect to socket /tmp/dbus-nfSpD2RF9N: Connection refused

(gnome-screensaver:21617): gnome-screensaver-WARNING **: failed to register with the message bus

gilead 11-16-2007 01:26 AM

There's a thread at https://bugs.launchpad.net/ubuntu/+s...ver/+bug/36257 that suggest installing dbus-1-utils will fix the problem. Do you have dbus-1-utils on your system?

DittoAlex 11-16-2007 01:27 AM

$ sudo apt-get install dbus-1-utils
Reading package lists... Done
Building dependency tree... Done
dbus-1-utils is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.

gilead 11-16-2007 01:33 AM

That's odd. The only other thread I saw for launching dbus apps was at http://lists.freedesktop.org/archive...ry/004061.html. They suggest dbus-launch <appname>, or in your case, dbus-launch gnome-screensaver

Sorry that's not much help.


All times are GMT -5. The time now is 01:15 PM.