From 1b0680b27d451b684f2372369d37765b2d0191a0 Mon Sep 17 00:00:00 2001 From: Sandip Pandey Date: Wed, 26 Jan 2022 12:05:21 +0100 Subject: [PATCH] Add workaround for wayland environment --- src/run_tribler.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/run_tribler.py b/src/run_tribler.py index bdaf61421f5..5c68c3998e0 100644 --- a/src/run_tribler.py +++ b/src/run_tribler.py @@ -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)