Checking whether Gnome screensaver currently active

Robert Nichols rnicholsNOSPAM at comcast.net
Tue Jan 18 04:57:00 UTC 2011


On 01/17/2011 09:57 PM, Rick Sewill wrote:
> Question please:
>
> Can you use
> gnome-screensaver-command -q
>
> man gnome-screensaver-command
>
> I'm currently trying out KDE so I don't know
> what is returned by the above command for the
> various gnome-screensaver states.

As I said in my original message, when run from a cron job that fails:

      ** Message: Failed to connect to the D-BUS daemon: /bin/dbus-launch
      terminated abnormally with the following error: Autolaunch error:
      X11 initialization failed.

And yes, I did try it with "DISPLAY=:0.0" in the environment.

-- 
Bob Nichols     "NOSPAM" is really part of my email address.
                 Do NOT delete it.



More information about the users mailing list