Commit e8b9deb2 authored by Benjamin Berg's avatar Benjamin Berg Committed by Benjamin Berg

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.
parent cc932bdb
......@@ -675,7 +675,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) {
......@@ -722,7 +722,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) {
......@@ -759,7 +759,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) {
......@@ -789,7 +789,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) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment