daily pastebin goal
65%
SHARE
TWEET

Untitled

a guest Jun 8th, 2012 1 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. import dbus, gobject
  2. from dbus.mainloop.glib import DBusGMainLoop
  3.  
  4. bus = dbus.SessionBus()
  5. obj = bus.get_object("org.gnome15.Gnome15", "/org/gnome15/Service")
  6. k = dbus.Interface(obj, "org.gnome15.Screen")
  7. print k.GetDevices()
RAW Paste Data
Pastebin PRO WINTER Special!
Get 40% OFF Pastebin PRO accounts!
Top