mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-01-31 07:10:45 +00:00
Correct usage of start command
This commit is contained in:
@@ -69,7 +69,8 @@ def open_file(path: str):
|
||||
try:
|
||||
if sys.platform == "win32":
|
||||
# Windows needs special attention to handle spaces in the file
|
||||
subprocess.Popen(["start", f'"{path.replace('"', '\"')}"'], shell=True, close_fds=True, creationflags=subprocess.DETACHED_PROCESS)
|
||||
# first parameter is for title, NOT filepath
|
||||
subprocess.Popen(["start", "", os.path.normpath(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