Work around gnome-terminal failing to appear

This commit is contained in:
Damien Elmes 2025-07-08 12:51:07 +07:00
parent c57b7c496d
commit 778ab76586

View file

@ -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 = (