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));
wait for it to be created and then add folders. Best to wait for the
LMS notification API. */
}
+
}
+
}