summaryrefslogtreecommitdiff
path: root/x11/sddm/files/xinit-session
diff options
context:
space:
mode:
Diffstat (limited to 'x11/sddm/files/xinit-session')
-rw-r--r--x11/sddm/files/xinit-session12
1 files changed, 12 insertions, 0 deletions
diff --git a/x11/sddm/files/xinit-session b/x11/sddm/files/xinit-session
new file mode 100644
index 000000000000..804728c9ca53
--- /dev/null
+++ b/x11/sddm/files/xinit-session
@@ -0,0 +1,12 @@
+#!/bin/sh
+#
+# Runs the user's .xinitrc (at this point, .xsession has already
+# been sourced).
+
+RC="$HOME/.xinitrc"
+
+test -f "$RC" || exit 1
+
+test -x "$RC" && exec "$RC"
+test -f "$RC" && exec /bin/sh "$RC"
+