[gnome-software] rpm-ostree: Register as a client with the daemon
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] rpm-ostree: Register as a client with the daemon
- Date: Tue, 23 Jan 2018 21:36:08 +0000 (UTC)
commit 396f01cc3206445ec3962ab75af050813d297b20
Author: Kalev Lember <klember redhat com>
Date: Tue Jan 23 22:35:26 2018 +0100
rpm-ostree: Register as a client with the daemon
... so that the rpm-ostree daemon knows that it needs to stay alive and
not exit.
plugins/rpm-ostree/gs-plugin-rpm-ostree.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
index 0733ea2..6b60ddb 100644
--- a/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
+++ b/plugins/rpm-ostree/gs-plugin-rpm-ostree.c
@@ -115,6 +115,15 @@ gs_plugin_setup (GsPlugin *plugin, GCancellable *cancellable, GError **error)
}
}
+ /* Register as a client so that the rpm-ostree daemon doesn't exit */
+ if (!gs_rpmostree_sysroot_call_register_client_sync (priv->sysroot_proxy,
+ g_variant_new ("a{sv}", NULL),
+ cancellable,
+ error)) {
+ gs_utils_error_convert_gio (error);
+ return FALSE;
+ }
+
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]