X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=blobdiff_plain;f=xsetbg-dbus-client.py;fp=xsetbg-dbus-client.py;h=0000000000000000000000000000000000000000;hp=b2aff341531f1cda045f496e557b1a31471014d6;hb=d5c6e0f3a31b32363d8547c712d5eb0178734c4d;hpb=fec6af560d298673f870595a21f002acf884f042 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()