Notify trackdir creation
[gregoa/zavai.git] / src / zavai
index 2997491886bc6298a35b790d30f91797a9019346..b1dcfb7152603f66f2c80a7a41aa98b2c4fa6860 100755 (executable)
--- a/src/zavai
+++ b/src/zavai
@@ -55,15 +55,17 @@ conf = zavai.read_config(nick="zavai")
 
 # Set up dbus
 dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)
+dbus_system_bus = dbus.SystemBus()
 
 # Set up zavai
 registry = zavai.Registry()
 
 # Register main factories
-registry.register("dbus.system_bus", dbus.SystemBus)
-registry.register("conf", lambda *args, **kw: conf)
-registry.register("app", zavai.Zavai)
-registry.register("menu", zavai.Menu)
+registry.register(dbus_system_bus, "dbus.system_bus")
+registry.register(conf, "conf")
+registry.register_factory(zavai.Zavai, "app")
+registry.register_factory(zavai.GPS, "gps")
+registry.register_factory(zavai.GPX, "gpx")
 
 # Load plugins
 zavai.info("Loading plugins")