summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d')
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/12keymap.sh4
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh13
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/89xdgautostart.sh7
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/90XWindowManager.sh7
4 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/12keymap.sh b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/12keymap.sh
new file mode 100644
index 0000000000..a9d102c746
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/12keymap.sh
@@ -0,0 +1,4 @@
1#!/bin/sh
2
3# kdrive 1.4 does not have default keymap in server
4#xmodmap - </etc/X11/default.xmodmap
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh
new file mode 100644
index 0000000000..91594b9e3d
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh
@@ -0,0 +1,13 @@
1# Minimal/stub implementation of the XDG Base Directory specification.
2# http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
3#
4# Wayland needs XDG_RUNTIME_DIR, so set it to /tmp. This isn't compliant with
5# the specification (wrong mode, wrong owner) but it's mostly sufficient.
6#
7# In the ideal case where SystemD is booting and userspace is initiated by a
8# SystemD user session this will have been set already, so don't overwrite it.
9
10if [ -z "$XGD_RUNTIME_DIR" ]; then
11 XDG_RUNTIME_DIR="/tmp"
12 export XDG_RUNTIME_DIR
13fi
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/89xdgautostart.sh b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/89xdgautostart.sh
new file mode 100644
index 0000000000..3d7008ca45
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/89xdgautostart.sh
@@ -0,0 +1,7 @@
1XDGAUTOSTART=/etc/xdg/autostart
2if [ -d $XDGAUTOSTART ]; then
3 for SCRIPT in $XDGAUTOSTART/*; do
4 CMD=`grep ^Exec= $SCRIPT | cut -d '=' -f 2`
5 $CMD &
6 done
7fi
diff --git a/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/90XWindowManager.sh b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/90XWindowManager.sh
new file mode 100644
index 0000000000..b936dedf3b
--- /dev/null
+++ b/meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/90XWindowManager.sh
@@ -0,0 +1,7 @@
1if [ -x $HOME/.Xsession ]; then
2 exec $HOME/.Xsession
3elif [ -x /usr/bin/x-session-manager ]; then
4 exec /usr/bin/x-session-manager
5else
6 exec /usr/bin/x-window-manager
7fi