From d394b1f8024fd1e26a9c9106fa82a8c896f460b4 Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Sat, 20 Nov 2021 16:45:30 +0100 Subject: [PATCH] qutebrowser: Force Qt to use XCB as QPA platform MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This somewhat alleviates the memory leaks, though it also creates new issues, like problems with context menus on multi-monitor setups. Meh… --- users/simon/modules/qutebrowser/default.nix | 3 +++ users/simon/modules/sway/default.nix | 1 + 2 files changed, 4 insertions(+) diff --git a/users/simon/modules/qutebrowser/default.nix b/users/simon/modules/qutebrowser/default.nix index 6f5d74d..06369d2 100644 --- a/users/simon/modules/qutebrowser/default.nix +++ b/users/simon/modules/qutebrowser/default.nix @@ -197,6 +197,9 @@ in url.default_page = "about:blank"; url.start_pages = [ "about:blank" ]; + # hack to circumvent memory leak (https://github.com/qutebrowser/qutebrowser/issues/1476) + qt.force_platform = "xcb"; + # Privacy content.cookies.accept = "no-3rdparty"; content.headers.user_agent = "Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"; diff --git a/users/simon/modules/sway/default.nix b/users/simon/modules/sway/default.nix index dc8aa9c..4675c7e 100644 --- a/users/simon/modules/sway/default.nix +++ b/users/simon/modules/sway/default.nix @@ -169,6 +169,7 @@ in "2" = [ { app_id = "firefox"; } { app_id = "org.qutebrowser.qutebrowser"; } + { class = "qutebrowser"; } # workaround for qutebrowser running under Xwayland #{ class="Chromium"; } ]; "3" = [