[gdm] session: give wayland sessions priority
- From: Ray Strode <halfline src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gdm] session: give wayland sessions priority
- Date: Mon, 9 Nov 2015 18:06:21 +0000 (UTC)
commit 6cd2d248250f08b033fac6dffdc95e2dc83ffb4a
Author: Ray Strode <rstrode redhat com>
Date: Mon Nov 9 11:33:01 2015 -0500
session: give wayland sessions priority
If two sessions have the same name, give the wayland one
priority, unless wayland sessions are being ignored.
https://bugzilla.gnome.org/show_bug.cgi?id=757715
daemon/gdm-session.c | 13 ++++++-------
1 files changed, 6 insertions(+), 7 deletions(-)
---
diff --git a/daemon/gdm-session.c b/daemon/gdm-session.c
index fa31669..8a2a97e 100644
--- a/daemon/gdm-session.c
+++ b/daemon/gdm-session.c
@@ -338,23 +338,22 @@ static const char **
get_system_session_dirs (GdmSession *self)
{
static const char *search_dirs[] = {
+#ifdef ENABLE_WAYLAND_SUPPORT
+ DATADIR "/wayland-sessions/",
+#endif
"/etc/X11/sessions/",
DMCONFDIR "/Sessions/",
DATADIR "/gdm/BuiltInSessions/",
DATADIR "/xsessions/",
-#ifdef ENABLE_WAYLAND_SUPPORT
- NULL,
-#endif
NULL
};
#ifdef ENABLE_WAYLAND_SUPPORT
- if (!self->priv->ignore_wayland) {
- search_dirs[G_N_ELEMENTS (search_dirs) - 1] = DATADIR "/wayland-sessions/";
- } else {
- search_dirs[G_N_ELEMENTS (search_dirs) - 1] = NULL;
+ if (self->priv->ignore_wayland) {
+ return search_dirs + 1;
}
#endif
+
return search_dirs;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]