]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.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:24:56 +0000 (22:24 +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.

(From OE-Core rev: 2332f93ae88ca4e4a5aac1806f21104b6489b3bb)

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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"