summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--maynard.in10
1 files changed, 8 insertions, 2 deletions
diff --git a/maynard.in b/maynard.in
index 4de517d..ad5f1b6 100644
--- a/maynard.in
+++ b/maynard.in
@@ -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