summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Berg <bberg@redhat.com>2020-09-24 22:35:18 +0200
committerBenjamin Berg <benjamin@sipsolutions.net>2020-12-03 16:22:27 +0000
commit87d92fece1bbc67146631330649cee2353bd6761 (patch)
treef4a42c546244e0e01341815681127897d3b583d7
parentb6d98eb76b1d56da2d7202944a748723b58ece4a (diff)
downloadgnome-session-87d92fece1bbc67146631330649cee2353bd6761.tar.gz
util: Never try to autostart systemd
systemd cannot be auto-started. Doing this avoids warnings during login of the gdm user where we (intentionally) cannot use systemd.
-rw-r--r--gnome-session/gsm-util.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gnome-session/gsm-util.c b/gnome-session/gsm-util.c
index bcad0eb9..070fa75b 100644
--- a/gnome-session/gsm-util.c
+++ b/gnome-session/gsm-util.c
@@ -673,7 +673,7 @@ gsm_util_export_user_environment (GError **error)
"UnsetAndSetEnvironment",
g_variant_builder_end (&builder),
NULL,
- G_DBUS_CALL_FLAGS_NONE,
+ G_DBUS_CALL_FLAGS_NO_AUTO_START,
-1, NULL, &bus_error);
if (bus_error != NULL) {
@@ -720,7 +720,7 @@ gsm_util_update_user_environment (const char *variable,
g_variant_new ("(@as)",
g_variant_builder_end (&builder)),
NULL,
- G_DBUS_CALL_FLAGS_NONE,
+ G_DBUS_CALL_FLAGS_NO_AUTO_START,
-1, NULL, &bus_error);
if (bus_error != NULL) {
@@ -757,7 +757,7 @@ gsm_util_start_systemd_unit (const char *unit,
g_variant_new ("(ss)",
unit, mode),
NULL,
- G_DBUS_CALL_FLAGS_NONE,
+ G_DBUS_CALL_FLAGS_NO_AUTO_START,
-1, NULL, &bus_error);
if (bus_error != NULL) {
@@ -787,7 +787,7 @@ gsm_util_systemd_reset_failed (GError **error)
"ResetFailed",
NULL,
NULL,
- G_DBUS_CALL_FLAGS_NONE,
+ G_DBUS_CALL_FLAGS_NO_AUTO_START,
-1, NULL, &bus_error);
if (bus_error != NULL) {