Skip to content

Commit

Permalink
Add workaround for wayland environment
Browse files Browse the repository at this point in the history
  • Loading branch information
xoriole committed Feb 2, 2022
1 parent b303931 commit 79627c6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/tribler-gui/tribler_gui/start_gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ def run_gui(api_port, api_key, root_state_dir, parsed_args):
if sys.platform == "darwin":
logger.info('Enabling a workaround for macOS Big Sur')
os.environ["QT_MAC_WANTS_LAYER"] = "1"
# Workaround for Ubuntu 21.04+, see https://github.com/Tribler/tribler/issues/6701
elif sys.platform == "linux":
logger.info('Enabling a workaround for Ubuntu 21.04+ wayland environment')
os.environ["GDK_BACKEND"] = "x11"

# Set up logging
load_logger_config('tribler-gui', root_state_dir)
Expand Down

0 comments on commit 79627c6

Please sign in to comment.