[gdm] session: honor ignore-wayland flag
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] session: honor ignore-wayland flag
- Date: Fri, 3 Mar 2017 18:36:52 +0000 (UTC)
commit 0f693f5a3b4bcdc1efe578c3618a4cb66a24a929
Author: Ray Strode <rstrode redhat com>
Date: Fri Mar 3 13:32:38 2017 -0500
session: honor ignore-wayland flag
commit 5b1e625417c274823c66a552f37d912986fc34d8 changed how the
default session path was computed. It inadvertently dropped
support for the ignore-wayland flag, breaking fall back to X in
scenarios where wayland doesn't work.
This commit fixes the code to again honor ignore-wayland.
https://bugzilla.gnome.org/show_bug.cgi?id=779338
daemon/gdm-session.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index 70130ac..e69291f 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -358,11 +358,13 @@ get_system_session_dirs (GdmSession *self)
g_array_append_vals (search_array, x_search_dirs, G_N_ELEMENTS (x_search_dirs));
#ifdef ENABLE_WAYLAND_SUPPORT
+ if (!self->priv->ignore_wayland) {
#ifdef ENABLE_USER_DISPLAY_SERVER
- g_array_prepend_val (search_array, wayland_search_dir);
+ g_array_prepend_val (search_array, wayland_search_dir);
#else
- g_array_append_val (search_array, wayland_search_dir);
+ g_array_append_val (search_array, wayland_search_dir);
#endif
+ }
#endif
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]