From 75ee644a3344fb2f3bf5bd8733b387064c3e11f4 Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Thu, 22 Sep 2016 16:29:09 +0300 Subject: 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 --- .../meta-raspberrypi/recipes-graphics/wayland/weston/weston.sh | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 meta-agl-bsp/meta-raspberrypi/recipes-graphics/wayland/weston/weston.sh (limited to 'meta-agl-bsp/meta-raspberrypi/recipes-graphics/wayland/weston/weston.sh') 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 -- cgit 1.2.3-korg