X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=blobdiff_plain;f=xsetbg-dbus-client.py;h=e3a7825f5eae34fdafe0d7ea81e2234073602b95;hp=b2aff341531f1cda045f496e557b1a31471014d6;hb=HEAD;hpb=829a09494a1675180999fea2f675508e832489c4 diff --git a/xsetbg-dbus-client.py b/xsetbg-dbus-client.py deleted file mode 100755 index b2aff34..0000000 --- a/xsetbg-dbus-client.py +++ /dev/null @@ -1,24 +0,0 @@ -#!/usr/bin/env python -"""XSetBg DBus client - -""" - -import sys -import dbus - - -def main(): - try: - command = sys.argv[1] - except IndexError: - sys.exit('Usage: %s command' % sys.argv[0]) - - bus = dbus.SessionBus() - 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()