X-Git-Url: https://git.phdru.name/?p=xsetbg.git;a=blobdiff_plain;f=xsetbg-dbus-client.py;h=e3a7825f5eae34fdafe0d7ea81e2234073602b95;hp=6775159a09d4b6f6e98eaab883d785a716596591;hb=HEAD;hpb=4e7394a7e103cf0633cc9c42d9959aa94f2d7c9a diff --git a/xsetbg-dbus-client.py b/xsetbg-dbus-client.py deleted file mode 100755 index 6775159..0000000 --- a/xsetbg-dbus-client.py +++ /dev/null @@ -1,27 +0,0 @@ -#!/usr/bin/env python -"""XSetBg DBus client - -""" - -__author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design" -__license__ = "GNU GPL" - - -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()