Skip to content

Commit 956ffd4

Browse files
committed
Properly detach process on Windows
1 parent 8b4b250 commit 956ffd4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tagstudio/src/qt/ts_qt.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
def open_file(path: str):
6262
try:
6363
if sys.platform == "win32":
64-
subprocess.Popen(["start", path], shell=True, close_fds=True)
64+
subprocess.Popen(["start", path], shell=True, close_fds=True, creationflags=subprocess.DETACHED_PROCESS)
6565
else:
6666
if sys.platform == "darwin":
6767
command_name = "open"

0 commit comments

Comments
 (0)