summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics
diff options
context:
space:
mode:
authorRoss Burton <ross.burton@intel.com>2013-01-16 12:59:08 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-01-18 13:28:03 +0000
commit1e1db8439bac36d66af14a4b41918ad3e19e3657 (patch)
tree60e55bad6a4ddfa5b538f6603d10c8071fdaed99 /meta/recipes-graphics
parent2ad18945202c46cd71fe6823c80b472ec434000d (diff)
downloadpoky-1e1db8439bac36d66af14a4b41918ad3e19e3657.tar.gz
x11-common: set XDG_RUNTIME_DIR if it isn't already set
Wayland needs this set for the communication pipes, so set a fallback in case it hasn't already been set. (From OE-Core rev: 263508220674321473a746a137bb5d4b21c55119) Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Saul Wold <sgw@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics')
-rw-r--r--meta/recipes-graphics/x11-common/x11-common/etc/X11/Xsession.d/13xdgbasedirs.sh13
1 files changed, 13 insertions, 0 deletions
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