Bjørn Lie
4893e99c95
default window manager happens by means of update-alternatives now. OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gdm?expand=0&rev=553
29 lines
943 B
Diff
29 lines
943 B
Diff
Index: gdm-46.rc/daemon/gdm-session.c
|
|
===================================================================
|
|
--- gdm-46.rc.orig/daemon/gdm-session.c
|
|
+++ gdm-46.rc/daemon/gdm-session.c
|
|
@@ -47,6 +47,8 @@
|
|
|
|
#include <systemd/sd-login.h>
|
|
|
|
+#include "gdm-sysconfig.h"
|
|
+
|
|
#include "gdm-session.h"
|
|
#include "gdm-session-glue.h"
|
|
#include "gdm-dbus-util.h"
|
|
@@ -618,6 +620,14 @@ get_fallback_session_name (GdmSession *s
|
|
}
|
|
}
|
|
|
|
+ name = gdm_sysconfig_load_value ("/etc/sysconfig/windowmanager", "DEFAULT_WM");
|
|
+ if (name && get_session_command_for_name (self, name, NULL, NULL)) {
|
|
+ g_free (self->fallback_session_name);
|
|
+ self->fallback_session_name = name;
|
|
+ goto out;
|
|
+ }
|
|
+ g_free (name);
|
|
+
|
|
name = g_strdup ("gnome");
|
|
if (get_session_command_for_name (self, name, NULL, NULL)) {
|
|
g_free (self->fallback_session_name);
|