mirror of
https://github.com/TagStudioDev/TagStudio.git
synced 2026-02-12 04:39:31 +00:00
fix: call filepaths instead of using start (#667)
This commit is contained in:
@@ -46,11 +46,9 @@ def open_file(path: str | Path, file_manager: bool = False):
|
||||
| subprocess.CREATE_BREAKAWAY_FROM_JOB,
|
||||
)
|
||||
else:
|
||||
command_name = "start"
|
||||
# first parameter is for title, NOT filepath
|
||||
command_args = ["", normpath]
|
||||
command = f'"{normpath}"'
|
||||
subprocess.Popen(
|
||||
[command_name] + command_args,
|
||||
command,
|
||||
shell=True,
|
||||
close_fds=True,
|
||||
creationflags=subprocess.CREATE_NEW_PROCESS_GROUP
|
||||
|
||||
Reference in New Issue
Block a user