From 6922c44d8e611ba9321f265b828efc9ee54e3d94 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/tribler-gui/tribler_gui/start_gui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tribler-gui/tribler_gui/start_gui.py b/src/tribler-gui/tribler_gui/start_gui.py index 226c5164ea5..b71756ee4dc 100644 --- a/src/tribler-gui/tribler_gui/start_gui.py +++ b/src/tribler-gui/tribler_gui/start_gui.py @@ -31,6 +31,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)