lms plugin: add trackable container support (based on lms update id signal)
[profile/ivi/rygel.git] / src / plugins / lms / rygel-lms-root-container.vala
index a7a7f98..1623fa3 100644 (file)
@@ -38,24 +38,8 @@ public class Rygel.LMS.RootContainer : Rygel.SimpleContainer {
 
         base.root(title);
 
-        string db_path = null;
         try {
-            LMS.DBus lms_proxy = Bus.get_proxy_sync (BusType.SESSION,
-                                            "org.lightmediascanner",
-                                            "/org/lightmediascanner/Scanner1");
-            db_path = lms_proxy.data_base_path;
-            debug ("Got db path %s from LMS over dbus", db_path);
-        } catch (Error e) {
-            warning("Using dbus to get db location failed: %s", e.message);
-        }
-        if (db_path == null) {
-            db_path = Environment.get_user_config_dir() +
-                      "/lightmediascannerd/db.sqlite3";
-            debug  ("Using default sqlite database location %s", db_path);
-        }
-
-        try {
-            this.lms_db = new LMS.Database (db_path);
+            this.lms_db = new LMS.Database ();
 
             this.add_child_container (new MusicRoot ("music", this, _("Music"), this.lms_db));
             this.add_child_container (new AllVideos ("all-videos", this, _("Videos"), this.lms_db));
@@ -68,5 +52,7 @@ public class Rygel.LMS.RootContainer : Rygel.SimpleContainer {
                wait for it to be created and then add folders.  Best to wait for the
                LMS notification API. */
         }
+
     }
+
 }