weston.sh: Set XDG_RUNTIME_DIR to /run/user/0 09/7209/2
authorLeon Anavi <leon.anavi@konsulko.com>
Wed, 16 Nov 2016 19:51:58 +0000 (21:51 +0200)
committerJan-Simon Moeller <jsmoeller@linuxfoundation.org>
Thu, 17 Nov 2016 12:44:20 +0000 (12:44 +0000)
Set XDG_RUNTIME_DIR for Raspberry Pi in weston.sh
to /run/user/0.

Bug-AGL: SPEC-310

Change-Id: I283ee98ae17a54aa3e6a4c8574ab9debe1b21fbb
Signed-off-by: Leon Anavi <leon.anavi@konsulko.com>
meta-agl-bsp/meta-raspberrypi/recipes-graphics/wayland/weston/weston.sh

index 7d62eff..225a034 100644 (file)
@@ -1,7 +1,7 @@
 #!/bin/sh
 
 if test -z "$XDG_RUNTIME_DIR"; then
-    export XDG_RUNTIME_DIR=/var/run/user/root
+    export XDG_RUNTIME_DIR=/run/user/$UID
     mkdir --parents $XDG_RUNTIME_DIR
     chmod 0700 $XDG_RUNTIME_DIR
 fi