mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02:21 -04:00
Work around gnome-terminal failing to appear
This commit is contained in:
parent
c57b7c496d
commit
778ab76586
1 changed files with 4 additions and 0 deletions
|
@ -150,6 +150,10 @@ def update_and_restart() -> None:
|
||||||
|
|
||||||
with contextlib.suppress(ResourceWarning):
|
with contextlib.suppress(ResourceWarning):
|
||||||
env = os.environ.copy()
|
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
|
creationflags = 0
|
||||||
if sys.platform == "win32":
|
if sys.platform == "win32":
|
||||||
creationflags = (
|
creationflags = (
|
||||||
|
|
Loading…
Reference in a new issue