Run "qdbus net.sf.kshutdown" to display all D-Bus commands.
Returns a list of available action names.
Example 1:
qdbus net.sf.kshutdown /kshutdown actionList true
Output 1:
extras - Extras
hibernate - Hibernate Computer
test - Test Action (does nothing)
reboot - Restart Computer
suspend - Suspend Computer (Sleep)
shutdown - Turn Off Computer
logout - Logout
lock - Lock Screen
Example 2:
$ qdbus net.sf.kshutdown /kshutdown actionList false
Output 2:
extras
hibernate
test
reboot
suspend
shutdown
logout
lock
Returns a list of available trigger/event names.
Example 1:
$ qdbus net.sf.kshutdown /kshutdown triggerList true
Output 1:
idle-monitor - On User Inactivity (HH:MM)
process-monitor - When selected application exit
time-from-now - Time From Now (HH:MM)
date-time - At Date/Time
no-delay - No Delay
Example 2:
$ qdbus net.sf.kshutdown /kshutdown triggerList false
Output 2:
idle-monitor
process-monitor
time-from-now
date-time
no-delay
Returns true if countdown is active; otherwise false.
Start/stop countdown.
Example 1 (same as the OK button click):
$ qdbus net.sf.kshutdown /kshutdown setActive true
Example 2 (same as the Cancel button click):
$ qdbus net.sf.kshutdown /kshutdown setActive false
Selects an action identified by id,
where id is a one of the names listed by the "actionList false".
Example:
$ qdbus net.sf.kshutdown /kshutdown setSelectedAction lock
Selects a time/event/trigger identified by id,
where id is a one of the names listed by "triggerList false".
Example:
$ qdbus net.sf.kshutdown /kshutdown setSelectedTrigger time-from-now
Sets the "time" and activates the countdown.
"triggerList false"HH:MM format (with leading zero)Example:
$ qdbus net.sf.kshutdown /kshutdown setTime time-from-now 01:30
Same as the --extra command line option.
Activates the "When selected application exit" trigger.
Example:
$ qdbus net.sf.kshutdown /kshutdown setWaitForProcess `pidof wget`
$ qdbus net.sf.kshutdown /kshutdown setSelectedAction hibernate
$ qdbus net.sf.kshutdown /kshutdown setWaitForProcess `pidof wget`
$ qdbus net.sf.kshutdown /kshutdown/main_window hide
$ qdbus net.sf.kshutdown /kshutdown/main_window show
$ qdbus net.sf.kshutdown /MainApplication quit