]> code.ossystems Code Review - openembedded-core.git/commitdiff
weston-init: Error out if loading a nested instance
authorOtavio Salvador <otavio@ossystems.com.br>
Wed, 18 May 2016 16:40:44 +0000 (13:40 -0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 21 May 2016 21:21:30 +0000 (22:21 +0100)
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 <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/recipes-graphics/wayland/weston-init/weston-start

index b791fd5a9b03212aa330c112d9e5a854ae15cfea..dc2b1efc7806908d84fb65ebc168599b6807099d 100755 (executable)
@@ -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"