Commit 698abf2a authored by Marco Barisione's avatar Marco Barisione
Browse files

maynard.in: don't try to run weston under X on Raspbian

parent ba1fac98
......@@ -23,8 +23,14 @@ xdpyinfo > /dev/null 2>&1
if [ "$?" = "0" ]; then
# We are running under X, so let's assume this is a development
# installation.
check_install
XDG_DATA_DIRS=$XDG_DATA_DIRS:$PREFIX/share/ $PREFIX/bin/weston
if ! cat /etc/os-release 2> /dev/null | grep 'ID=raspbian' > /dev/null; then
# Non-Raspbian, we can launch weston under X.
check_install
XDG_DATA_DIRS=$XDG_DATA_DIRS:$PREFIX/share/ $PREFIX/bin/weston
else
echo "You cannot run Maynard under X." >&2
exit 1
fi
else
weston-launch
fi
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment