diff --git a/tagstudio/src/qt/helpers/file_opener.py b/tagstudio/src/qt/helpers/file_opener.py index f696d416c..51afd230a 100644 --- a/tagstudio/src/qt/helpers/file_opener.py +++ b/tagstudio/src/qt/helpers/file_opener.py @@ -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