Further isolate program window from TagStudio

This commit is contained in:
Xarvex 2024-04-28 11:31:18 -05:00
parent 2d558efde7
commit 4a9c4de56a
No known key found for this signature in database
GPG key ID: A743BDBA677BE86D

View file

@ -76,7 +76,7 @@ def open_file(path: str, file_manager: bool = False):
command_name = "start"
# first parameter is for title, NOT filepath
command_args = ["", normpath]
subprocess.Popen([command_name] + command_args, shell=True, close_fds=True, creationflags=subprocess.DETACHED_PROCESS)
subprocess.Popen([command_name] + command_args, shell=True, close_fds=True, creationflags=subprocess.DETACHED_PROCESS | subprocess.CREATE_NEW_PROCESS_GROUP | subprocess.CREATE_BREAKAWAY_FROM_JOB)
else:
if sys.platform == "darwin":
command_name = "open"