DBUS – Linux Desktop Hacking - Mid-Hudson Valley Linux Users ...
DBUS – Linux Desktop Hacking - Mid-Hudson Valley Linux Users ...
DBUS – Linux Desktop Hacking - Mid-Hudson Valley Linux Users ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
Sean Dague<br />
#!/usr/bin/ruby<br />
# From the ruby-dbus project<br />
require “dbus”<br />
Getting on the Bus<br />
# System Bus is for OS events, shared for all users<br />
system_bus = <strong>DBUS</strong>::SystemBus.instance<br />
# Session Bus is per desktop instance<br />
session_bus = DBus::SessionBus.instance<br />
<strong>Mid</strong>-<strong>Hudson</strong> <strong>Valley</strong> <strong>Linux</strong> <strong>Users</strong> Group<br />
11