Advertisement
Guest User

Invoke Mousepad LaunchFiles

a guest
Nov 19th, 2014
482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #!/bin/python2
  2.  
  3. import gobject
  4. import dbus
  5. from dbus import glib
  6.  
  7. gobject.threads_init()
  8. glib.init_threads()
  9. bus = dbus.SessionBus()
  10.  
  11. remote_object = bus.get_object('org.xfce.Mousepad', '/org/xfce/Mousepad')
  12.  
  13. iface = dbus.Interface(remote_object, 'org.xfce.Mousepad')
  14. iface.LaunchFiles('/etc', ['lsb-release'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement