Notify trackdir creation
[gregoa/zavai.git] / src / zavai
index 3adaa562c57118f3e2fe529bf7f82b2f5958daf0..b1dcfb7152603f66f2c80a7a41aa98b2c4fa6860 100755 (executable)
--- a/src/zavai
+++ b/src/zavai
@@ -61,11 +61,11 @@ dbus_system_bus = dbus.SystemBus()
 registry = zavai.Registry()
 
 # Register main factories
-registry.register("dbus.system_bus", lambda *args, **kw: dbus_system_bus)
-registry.register("conf", lambda *args, **kw: conf)
-registry.register("app", zavai.Zavai)
-registry.register("menu", zavai.Menu)
-registry.register("gps", zavai.GPS)
+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")