summaryrefslogtreecommitdiff
path: root/recipes-graphics/wayland/weston-init/weston.sh
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-graphics/wayland/weston-init/weston.sh')
-rw-r--r--recipes-graphics/wayland/weston-init/weston.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/recipes-graphics/wayland/weston-init/weston.sh b/recipes-graphics/wayland/weston-init/weston.sh
new file mode 100644
index 0000000..89b04ec
--- /dev/null
+++ b/recipes-graphics/wayland/weston-init/weston.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+# Set WAYLAND_DISPLAY manually.
+# It will cause app failures if this variable is not set for ssh login.
+if test -z "$WAYLAND_DISPLAY"; then
+ export WAYLAND_DISPLAY="/run/wayland-0"
+fi