- TreeIter iter;
- job_model.append(out iter);
- update_job_iter(iter, id, j);
+ Properties p = Bus.get_proxy_sync(
+ user ? BusType.SESSION : BusType.SYSTEM,
+ "org.freedesktop.systemd1",
+ path);
+
+ p.properties_changed.connect(on_job_changed);
+
+ TreeIter iter;
+ job_model.append(out iter);
+
+ Job j = Bus.get_proxy_sync(
+ user ? BusType.SESSION : BusType.SYSTEM,
+ "org.freedesktop.systemd1",
+ path);
+
+ update_job_iter(iter, id, j);
+
+ } catch (IOError e) {
+ show_error(e.message);
+ }