X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=xsetbg-dbus-client.py;h=b2aff341531f1cda045f496e557b1a31471014d6;hb=829a09494a1675180999fea2f675508e832489c4;hp=3a0087ae065b50ec32b8f84f6fb9f7b34e1b0150;hpb=9f11c26113add5270ade4da28c7a2adb84194b1b;p=xsetbg.git diff --git a/xsetbg-dbus-client.py b/xsetbg-dbus-client.py old mode 100644 new mode 100755 index 3a0087a..b2aff34 --- a/xsetbg-dbus-client.py +++ b/xsetbg-dbus-client.py @@ -3,14 +3,10 @@ """ -__author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design" -__license__ = "GNU GPL" - - import sys import dbus + def main(): try: command = sys.argv[1] @@ -18,10 +14,11 @@ def main(): sys.exit('Usage: %s command' % sys.argv[0]) bus = dbus.SessionBus() - remote_object = bus.get_object("name.phdru.XSetBg", "/XSetBg") + remote_object = bus.get_object("name.phdru.XSetBg", "/name/phdru/XSetBg") iface = dbus.Interface(remote_object, "name.phdru.XSetBg") getattr(iface, command)() + if __name__ == '__main__': main()