From 2332f93ae88ca4e4a5aac1806f21104b6489b3bb Mon Sep 17 00:00:00 2001 From: Otavio Salvador Date: Wed, 18 May 2016 13:40:44 -0300 Subject: weston-init: Error out if loading a nested instance The Weston nested instance support is not implemented. This errors out displaying an informative error message so someone insterested on it may look at implement this later. Signed-off-by: Otavio Salvador Signed-off-by: Ross Burton --- meta/recipes-graphics/wayland/weston-init/weston-start | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/recipes-graphics') diff --git a/meta/recipes-graphics/wayland/weston-init/weston-start b/meta/recipes-graphics/wayland/weston-init/weston-start index b791fd5a9b..dc2b1efc78 100755 --- a/meta/recipes-graphics/wayland/weston-init/weston-start +++ b/meta/recipes-graphics/wayland/weston-init/weston-start @@ -14,6 +14,11 @@ if test $# -lt 2; then exit 1 fi +if [ -n "$WAYLAND_DISPLAY" ]; then + echo "ERROR: A Wayland compositor is already running, nested Weston instance is not supported yet." + exit 1 +fi + openvt_args="" while [ -n "$1" ]; do openvt_args="$openvt_args $1" -- cgit v1.2.3