We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a5304fe + 5ff36fe commit 2b2a09eCopy full SHA for 2b2a09e
lib/dtutils/system.lua
@@ -120,13 +120,13 @@ dtutils_system.libdoc.functions["launch_default_app"] = {
120
Copyright = [[]],
121
}
122
function dtutils_system.launch_default_app(path)
123
- local open_cmd = "xdg-open"
+ local open_cmd = "xdg-open "
124
if (dt.configuration.running_os == "windows") then
125
- open_cmd = "start"
+ open_cmd = "start "
126
elseif (dt.configuration.running_os == "macos") then
127
- open_cmd = "open"
+ open_cmd = "open "
128
end
129
- return dtutils_system.external_command(open_cmd..' "'..path..'"')
+ return dtutils_system.external_command(open_cmd .. path)
130
131
132
0 commit comments