#!/usr/bin/python3
#dummy dbus service for zeitgeist
from gi.repository import GObject
import dbus
import dbus.service

from dbus.mainloop.glib import DBusGMainLoop
DBusGMainLoop(set_as_default=True)


OPATH = "/org/gnome/zeitgeist/Engine"
IFACE = "org.gnome.zeitgeist.Engine"
BUS_NAME = "org.gnome.zeitgeist.Engine"


class Example(dbus.service.Object):
    def __init__(self):
        bus = dbus.SessionBus()
        bus.request_name(BUS_NAME)
        bus_name = dbus.service.BusName(BUS_NAME, bus=bus)
        dbus.service.Object.__init__(self, bus_name, OPATH)

    @dbus.service.method(dbus_interface=IFACE + ".dummy",
                         in_signature="", out_signature="")
    def dummy(self):
        pass


if __name__ == "__main__":
    a = Example()
    loop = GObject.MainLoop()
    loop.run()
