Skip to content

Commit 2b2a09e

Browse files
authored
Merge pull request darktable-org#172 from wpferguson/fix_open_default_app
fix lib/dtutils/system/open_default_app()
2 parents a5304fe + 5ff36fe commit 2b2a09e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/dtutils/system.lua

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,13 @@ dtutils_system.libdoc.functions["launch_default_app"] = {
120120
Copyright = [[]],
121121
}
122122
function dtutils_system.launch_default_app(path)
123-
local open_cmd = "xdg-open"
123+
local open_cmd = "xdg-open "
124124
if (dt.configuration.running_os == "windows") then
125-
open_cmd = "start"
125+
open_cmd = "start "
126126
elseif (dt.configuration.running_os == "macos") then
127-
open_cmd = "open"
127+
open_cmd = "open "
128128
end
129-
return dtutils_system.external_command(open_cmd..' "'..path..'"')
129+
return dtutils_system.external_command(open_cmd .. path)
130130
end
131131

132132

0 commit comments

Comments
 (0)