From 716051d826f1b09ae189dac9a14ac833aa9d5693 Mon Sep 17 00:00:00 2001 From: kramo <93832451+kra-mo@users.noreply.github.com> Date: Sat, 25 Mar 2023 11:09:12 +0100 Subject: [PATCH] Fix games not launching on Windows --- src/game.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/game.py b/src/game.py index abf9bd2..e9fbeab 100644 --- a/src/game.py +++ b/src/game.py @@ -81,6 +81,7 @@ class game(Gtk.Box): # pylint: disable=invalid-name ["flatpak-spawn", "--host", *self.executable] # Flatpak if os.getenv("FLATPAK_ID") == "hu.kramo.Cartridges" else self.executable, # Others + shell=os.name == "nt", # Set shell to True on Windows start_new_session=True, creationflags=subprocess.CREATE_NEW_PROCESS_GROUP if os.name == "nt" else 0, )