Xfce Wiki

Sub domains
 

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
apps:screensaver:dbus [2018/11/22 14:17] – created bluesabreapps:screensaver:dbus [2018/11/22 17:02] bluesabre
Line 86: Line 86:
 ^ Direction ^ Type ^ Description ^ ^ Direction ^ Type ^ Description ^
 | out | unsigned integer | Active time in seconds | | out | unsigned integer | Active time in seconds |
- 
-''**GetSessionIdle**'' 
- 
-Returns the value of the current state of session idleness. 
- 
-^ Direction ^ Type ^ Description ^ 
-| out | boolean | If the session is idle | 
- 
-''**GetSessionIdleTime**'' 
- 
-Returns the number of seconds that the session has been idle. Returns zero if the session is not idle. 
- 
-^ Direction ^ Type ^ Description ^ 
-| out | unsigned integer | Idle time in seconds | 
  
 ===== Signals ===== ===== Signals =====
Line 111: Line 97:
 ^ Direction ^ Type ^ Description ^ ^ Direction ^ Type ^ Description ^
 | out | boolean | Returns the value of the current state of activity. | | out | boolean | Returns the value of the current state of activity. |
- 
-''**SessionIdleChanged**'' 
- 
-See method GetActive(). 
- 
-^ Direction ^ Type ^ Description ^ 
-| out | boolean | Returns the value of the current state of activity. | 
- 
-''**AuthenticationRequestBegin**'' 
- 
-Emitted before an authentication request 
- 
-''**AuthenticationRequestEnd**'' 
- 
-Emitted after an authentication request 
  
 ===== Examples ===== ===== Examples =====
- 
-You can get the number of seconds the screensaver has been active by running the following: 
- 
-<code> 
-dbus-send --session \ 
-          --dest=org.xfce.ScreenSaver \ 
-          --type=method_call \ 
-          --print-reply \ 
-          --reply-timeout=20000 \ 
-          /org/xfce/ScreenSaver \ 
-          org.xfce.ScreenSaver.GetSessionIdleTime 
-</code> 
          
 You can activate the screensaver like so: You can activate the screensaver like so:
Line 161: Line 120:
 </code> </code>
  
-Or watch for a specific screensaver signal: 
- 
-<code> 
-dbus-monitor --session \ 
-          "type='signal',interface='org.xfce.ScreenSaver',member='SessionIdleChanged'" 
-</code>