fix: call filepaths instead of using start (#667)

This commit is contained in:
SkeleyM
2025-01-03 08:37:18 +00:00
committed by GitHub
parent 7b672e03a1
commit ef042ef070

View File

@@ -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