PDA

View Full Version : dbus commands



jazzerit
June 5th, 2011, 02:41 AM
Ok guys: Let's see what you can do with dbus! Here's two to get you started:
Turn off the computer from the command line without root:

dbus-send --system --print-reply --dest=org.freedesktop.Hal /org/freedesktop/Hal/devices/computer org.freedesktop.Hal.Device.SystemPowerManagement.S hutdown

toggle banshee play/pause:

dbus-send --session --type="method_call" --dest='org.bansheeproject.Banshee' '/org/bansheeproject/Banshee/PlayerEngine' 'org.bansheeproject.Banshee.PlayerEngine.TogglePla ying'

Now, let's see what else we got. Don't forget the command!

cariboo
June 5th, 2011, 06:23 AM
When posting commands, you should use the
tags.