Software: Apache/2.2.16 (Debian). PHP/5.3.3-7+squeeze19 uname -a: Linux mail.tri-specialutilitydistrict.com 2.6.32-5-amd64 #1 SMP Tue May 13 16:34:35 UTC uid=33(www-data) gid=33(www-data) groups=33(www-data) Safe-mode: OFF (not secure) /usr/share/doc/gnome-screensaver/ drwxr-xr-x |
Viewing file: Select action/file-type: Table of Contents Table of Contents This API is currently unstable and is likely to change in the future. GNOME Screensaver exposes a DBUS API for programs to obtain information about the screensaver state and to interact with the screensaver in limited ways. The following constants are used to uniquely refer to the GnomeScreensaver object when making DBUS method calls:
These are the DBUS methods. Request that the screen saver theme be restarted and, if applicable, switch to the next one in the list. Simulate user activity. If the screensaver is activated this will attempt to deactivate and authentication will be requested if necessary. If the screensaver is not activated then the idle timers will be reset. Request that saving the screen due to system idleness be blocked until UnInhibit is called or the calling process exits.
A cookie is a random, unique, non-zero UINT32 used to identify the inhibit request. Cancel a previous call to Inhibit() identified by the cookie.
Request that running themes while the screensaver is active be blocked until UnThrottle is called or the calling process exits.
A cookie is a random, unique, non-zero UINT32 used to identify the throttle request. Cancel a previous call to Throttle() identified by the cookie.
Request a change in the state of the screensaver. Set to TRUE to request that the screensaver activate. Active means that the screensaver has blanked the screen and may run a graphical theme. This does not necessary mean that the screen is locked.
Returns the value of the current state of activity. See SetActive().
Returns the number of seconds that the screensaver has been active. Returns zero if the screensaver is not active.
Returns the value of the current state of session idleness.
These are the DBUS signals. See method GetActive().
See method GetActive().
You can get the number of seconds the screensaver has been active by running the following: dbus-send --session \ --dest=org.gnome.ScreenSaver \ --type=method_call \ --print-reply \ --reply-timeout=20000 \ /org/gnome/ScreenSaver \ org.gnome.ScreenSaver.GetSessionIdleTime You can activate the screensaver like so: dbus-send --session \ --dest=org.gnome.ScreenSaver \ --type=method_call \ --print-reply \ --reply-timeout=20000 \ /org/gnome/ScreenSaver \ org.gnome.ScreenSaver.SetActive \ boolean:true You can monitor screensaver changes: dbus-monitor --session \ "type='signal',interface='org.gnome.ScreenSaver'" Or watch for a specific screensaver signal: dbus-monitor --session \ "type='signal',interface='org.gnome.ScreenSaver',member='SessionIdleChanged'" |
:: Command execute :: | |
--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0081 ]-- |