Commit df59779c authored by Cortex65's avatar Cortex65
Browse files

detect and enable wayland

parent f69f3f0f
......@@ -7,14 +7,19 @@
complain_dialog_title="Tor Browser"
# First, make sure DISPLAY is set. If it isn't, we're hosed; scream
# at stderr and die.
if [ "x$DISPLAY" = "x" ]; then
echo "$complain_dialog_title must be run within the X Window System." >&2
# First, make sure DISPLAY or WAYLAND_DISPLAY is set. If it isn't, we're
# hosed; scream at stderr and die.
if [ "x$DISPLAY" != "x" ] || [ "x$WAYLAND_DISPLAY" != "x" ]; then
if [ "x$WAYLAND_DISPLAY" != "x" ] ;then
export MOZ_ENABLE_WAYLAND=1
fi
else
echo "$complain_dialog_title must be run within the X Window System or Wayland." >&2
echo "Exiting." >&2
exit 1
fi
# Second, make sure this script wasn't started as 'sh start-tor-browser' or
# similar.
if [ "x$BASH" = "x" ]; then
......
Supports Markdown
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