Author: dj
Date: Sat Feb 16 23:58:08 2019
New Revision: 21184

Log:
Detect/set XDG_SESSION_TYPE for gdm

Modified:
   branches/bootscripts-elogind/ChangeLog
   branches/bootscripts-elogind/blfs/init.d/gdm

Modified: branches/bootscripts-elogind/ChangeLog
==============================================================================
--- branches/bootscripts-elogind/ChangeLog      Sat Feb 16 23:22:47 2019        
(r21183)
+++ branches/bootscripts-elogind/ChangeLog      Sat Feb 16 23:58:08 2019        
(r21184)
@@ -1,4 +1,7 @@
 2019-02-07  DJ Lucas <[email protected]>
+   * Detect/set XDG_SESSION_TYPE for gdm
+
+2019-02-07  DJ Lucas <[email protected]>
    * Add separate mount for /run/user to mountcgroupfs
    * Correct dependency information for elogind
 

Modified: branches/bootscripts-elogind/blfs/init.d/gdm
==============================================================================
--- branches/bootscripts-elogind/blfs/init.d/gdm        Sat Feb 16 23:22:47 
2019        (r21183)
+++ branches/bootscripts-elogind/blfs/init.d/gdm        Sat Feb 16 23:58:08 
2019        (r21184)
@@ -5,6 +5,7 @@
 # Description : GDM Boot Script
 #
 # Authors     : Armin K. <[email protected]>
+#               DJ Lucas <[email protected]>
 #
 # Version     : BLFS SVN
 #
@@ -14,8 +15,8 @@
 # Provides:            gdm
 # Required-Start:      $local_fs $remote_fs
 # Required-Stop:       $local_fs $remote_fs
-# Default-Start:       2 3 4 5
-# Default-Stop:        0 1 6
+# Default-Start:       5
+# Default-Stop:        0 1 2 3 4 6
 # Short-Description:   GNOME Display Manager
 # X-LFS-Provided-By:   BLFS
 ### END INIT INFO
@@ -26,6 +27,14 @@
 
 case "${1}" in
    start)
+      # Determine session type
+      XDG_SESSION_TYPE=wayland
+      if [ -f /etc/gdm/custom.conf ]; then
+        grep "^WaylandEnable" | grep "false" 2>&1>/dev/null &&
+        XDG_SESSION_TYPE=x11
+      fi
+      export XDG_SESSION_TYPE
+
       log_info_msg "Starting GNOME Display Manager GDM"
       start_daemon ${GDM_BINARY}
       evaluate_retval
-- 
http://lists.linuxfromscratch.org/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to