summaryrefslogtreecommitdiff
path: root/source/x/x11/post-install/xdm.post-install
diff options
context:
space:
mode:
Diffstat (limited to 'source/x/x11/post-install/xdm.post-install')
-rw-r--r--source/x/x11/post-install/xdm.post-install9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/x/x11/post-install/xdm.post-install b/source/x/x11/post-install/xdm.post-install
index a8889970..8410a8fa 100644
--- a/source/x/x11/post-install/xdm.post-install
+++ b/source/x/x11/post-install/xdm.post-install
@@ -29,6 +29,15 @@ do
#mv $PKG/etc/X11/xdm/${conffile} $PKG/etc/X11/xdm/${conffile}.new ;
done
+# Change default auth type:
+cat << EOF >> $PKG/etc/X11/xdm/xdm-config.new
+
+! In xdm-config, default to MIT-MAGIC-COOKIE-1 authorization as
+! the XDM-AUTHORIZATION-1 method (which is the default otherwise) is
+! mostly broken (i.e. with SDL2 apps):
+DisplayManager.*.authName: MIT-MAGIC-COOKIE-1
+EOF
+
mkdir -p $PKG/var/lib/xdm
chown root:root $PKG/var/lib/xdm
chmod 755 $PKG/var/lib/xdm