mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-30 14:50:47 +00:00
Properly detach process on Windows
This commit is contained in:
@@ -61,7 +61,7 @@ logging.basicConfig(format="%(message)s", level=logging.INFO)
|
||||
def open_file(path: str):
|
||||
try:
|
||||
if sys.platform == "win32":
|
||||
subprocess.Popen(["start", path], shell=True, close_fds=True)
|
||||
subprocess.Popen(["start", path], shell=True, close_fds=True, creationflags=subprocess.DETACHED_PROCESS)
|
||||
else:
|
||||
if sys.platform == "darwin":
|
||||
command_name = "open"
|
||||
|
||||
Reference in New Issue
Block a user