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 Jan 26, 2022
1 parent e28d09a commit 1b0680b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/run_tribler.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,9 @@ def init_boot_logger():
if sys.platform == "darwin":
logger.info('Enabling a workaround for macOS Big Sur')
os.environ["QT_MAC_WANTS_LAYER"] = "1"
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 1b0680b

Please sign in to comment.