repository: auto start service if not already running
This commit is contained in:
@@ -21,7 +21,7 @@ public class Repository : DBusServiceProxy {
|
|||||||
private uint dbus_watch_id;
|
private uint dbus_watch_id;
|
||||||
|
|
||||||
private Repository() {
|
private Repository() {
|
||||||
this.dbus_watch_id = Bus.watch_name(BusType.SESSION, DBUS_NAME, BusNameWatcherFlags.NONE, (name, name_owner) => {
|
this.dbus_watch_id = Bus.watch_name(BusType.SESSION, DBUS_NAME, BusNameWatcherFlags.AUTO_START, (name, name_owner) => {
|
||||||
connect_to_repository();
|
connect_to_repository();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user