summaryrefslogtreecommitdiff
path: root/x11/gdm/files/patch-daemon_gdm-wayland-session.c
blob: 03e60d4c6d91e8bf73bdd597747c8334c5eb9432 (plain) (blame)
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
--- daemon/gdm-wayland-session.c.orig	2023-09-14 15:27:04 UTC
+++ daemon/gdm-wayland-session.c
@@ -212,32 +212,7 @@ import_environment (State        *state,
 import_environment (State        *state,
                     GCancellable *cancellable)
 {
-        g_autoptr(GVariant) reply = NULL;
-        g_autoptr(GVariant) environment_variant = NULL;
-        g_autoptr(GError)   error = NULL;
-
-        reply = g_dbus_connection_call_sync (state->bus_connection,
-                                             "org.freedesktop.systemd1",
-                                             "/org/freedesktop/systemd1",
-                                             "org.freedesktop.DBus.Properties",
-                                             "Get",
-                                             g_variant_new ("(ss)",
-                                                            "org.freedesktop.systemd1.Manager",
-                                                            "Environment"),
-                                             NULL,
-                                             G_DBUS_CALL_FLAGS_NONE,
-                                             -1, cancellable, &error);
-
-        if (reply == NULL) {
-                g_debug ("could not fetch environment: %s", error->message);
-                return FALSE;
-        }
-
-        g_variant_get (reply, "(v)", &environment_variant);
-
-        state->environment = g_variant_dup_strv (environment_variant, NULL);
-
-        return TRUE;
+        return FALSE;
 }
 
 static void