summaryrefslogtreecommitdiffstats
path: root/debian/patches/util-Never-try-to-autostart-systemd.patch
blob: abcf973d96819177dab8c237097eadaefebf7c04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
From: Benjamin Berg <bberg@redhat.com>
Date: Thu, 24 Sep 2020 22:35:18 +0200
Subject: 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.

Origin: upstream, 40, commit:87d92fece1bbc67146631330649cee2353bd6761
---
 gnome-session/gsm-util.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/gnome-session/gsm-util.c b/gnome-session/gsm-util.c
index bcad0eb..070fa75 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) {