aboutsummaryrefslogtreecommitdiffstats
path: root/meta-agl-bsp/meta-raspberrypi/recipes-graphics/wayland/weston/weston.sh
diff options
context:
space:
mode:
authorLeon Anavi <leon.anavi@konsulko.com>2016-09-22 16:29:09 +0300
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>2016-09-26 02:03:08 +0000
commit75ee644a3344fb2f3bf5bd8733b387064c3e11f4 (patch)
treee46d80c1e3948779426e1108115d44742d1eaa94 /meta-agl-bsp/meta-raspberrypi/recipes-graphics/wayland/weston/weston.sh
parent13529391207b722a73581b087550abb5fb0d0957 (diff)
weston: Set XDG_RUNTIME_DIR for Raspberry Pi
Set environment variable XDG_RUNTIME_DIR and fix Weston on Raspberry Pi 2/3 through script /etc/profile.d/weston.sh. Change-Id: Ie561623641f287e1ec911a5813c2cff225af4977 Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
Diffstat (limited to 'meta-agl-bsp/meta-raspberrypi/recipes-graphics/wayland/weston/weston.sh')
-rw-r--r--meta-agl-bsp/meta-raspberrypi/recipes-graphics/wayland/weston/weston.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/meta-agl-bsp/meta-raspberrypi/recipes-graphics/wayland/weston/weston.sh b/meta-agl-bsp/meta-raspberrypi/recipes-graphics/wayland/weston/weston.sh
new file mode 100644
index 000000000..7d62eff77
--- /dev/null
+++ b/meta-agl-bsp/meta-raspberrypi/recipes-graphics/wayland/weston/weston.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+if test -z "$XDG_RUNTIME_DIR"; then
+ export XDG_RUNTIME_DIR=/var/run/user/root
+ mkdir --parents $XDG_RUNTIME_DIR
+ chmod 0700 $XDG_RUNTIME_DIR
+fi