Xfce Wiki

Sub domains
 

Differences

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

Link to this comparison view

Next revisionBoth sides next revision
apps:screensaver:dbus [2018/11/22 14:17] – created bluesabreapps:screensaver:dbus [2018/11/22 16:55] bluesabre
Line 93: Line 93:
 ^ Direction ^ Type ^ Description ^ ^ Direction ^ Type ^ Description ^
 | out | boolean | If the session is idle | | 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 128: Line 121:
  
 ===== 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: