Private
Public Access
1
0

repository: auto start service if not already running

This commit is contained in:
2025-07-15 18:58:13 -07:00
parent c878141e61
commit 3e43bd1434

View File

@@ -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();
}); });
} }