X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=xsetbg-dbus.py;h=4d7d34838c385231bc5ef5ca6129bea33ae220f8;hb=3c346158f50cfb7e7995cc0176af52d88308529f;hp=11570bc720c6c3933be61fafcba3409fd2a4eea4;hpb=9f11c26113add5270ade4da28c7a2adb84194b1b;p=xsetbg.git diff --git a/xsetbg-dbus.py b/xsetbg-dbus.py index 11570bc..4d7d348 100755 --- a/xsetbg-dbus.py +++ b/xsetbg-dbus.py @@ -3,10 +3,6 @@ """ -__author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design" -__license__ = "GNU GPL" - import gobject import dbus @@ -18,15 +14,18 @@ from xsetbg import change class XsetBg(dbus.service.Object): - @dbus.service.method("name.phdru.XSetBg", in_signature='', out_signature='') + @dbus.service.method("name.phdru.XSetBg", + in_signature='', out_signature='') def change(self): change() - @dbus.service.method("name.phdru.XSetBg", in_signature='', out_signature='') + @dbus.service.method("name.phdru.XSetBg", + in_signature='', out_signature='') def force(self): change(force=True) - @dbus.service.method("name.phdru.XSetBg", in_signature='', out_signature='') + @dbus.service.method("name.phdru.XSetBg", + in_signature='', out_signature='') def stop(self): mainloop.quit() @@ -36,7 +35,7 @@ if __name__ == '__main__': session_bus = dbus.SessionBus() name = dbus.service.BusName("name.phdru.XSetBg", session_bus) - object = XsetBg(session_bus, '/XSetBg') + object = XsetBg(session_bus, '/name/phdru/XSetBg') change(force=True) mainloop = gobject.MainLoop()