Fix games not launching on Windows

This commit is contained in:
kramo
2023-03-25 11:09:12 +01:00
parent e3b24eafc0
commit 716051d826

View File

@@ -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,
)