From 778ab7658600cdbe51cc40ef39bf68caaf2addd9 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Tue, 8 Jul 2025 12:51:07 +0700 Subject: [PATCH] Work around gnome-terminal failing to appear --- qt/aqt/package.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/qt/aqt/package.py b/qt/aqt/package.py index f85a17335..968218741 100644 --- a/qt/aqt/package.py +++ b/qt/aqt/package.py @@ -150,6 +150,10 @@ def update_and_restart() -> None: with contextlib.suppress(ResourceWarning): env = os.environ.copy() + # fixes a bug where launcher fails to appear if opening it + # straight after updating + if "GNOME_TERMINAL_SCREEN" in env: + del env["GNOME_TERMINAL_SCREEN"] creationflags = 0 if sys.platform == "win32": creationflags = (