Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Cortex65
tor-browser-build
Commits
df59779c
Commit
df59779c
authored
Jun 25, 2021
by
Cortex65
Browse files
detect and enable wayland
parent
f69f3f0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
projects/tor-browser/RelativeLink/start-tor-browser
View file @
df59779c
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment