Checking whether Gnome screensaver currently active

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



In a 'cron' job, is there a way to tell whether the Gnome screensaver is
currently active?  Trying to use "gnome-screensaver-command -q" just results
in:

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

Alternative ways of testing whether the console user is actively using the
system would also be appreciated.  This is my own cron job trying to test
whether I am currently active, so the IDs match, but the job is obviously
not part of the current Gnome session.

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

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux