Added a space after the commands and removed quotes in the command invocation.

This commit is contained in:
Bill Ferguson
2019-02-26 12:03:04 -05:00
parent a5304fe74c
commit 5ff36fe2ec

View File

@@ -120,13 +120,13 @@ dtutils_system.libdoc.functions["launch_default_app"] = {
Copyright = [[]],
}
function dtutils_system.launch_default_app(path)
local open_cmd = "xdg-open"
local open_cmd = "xdg-open "
if (dt.configuration.running_os == "windows") then
open_cmd = "start"
open_cmd = "start "
elseif (dt.configuration.running_os == "macos") then
open_cmd = "open"
open_cmd = "open "
end
return dtutils_system.external_command(open_cmd..' "'..path..'"')
return dtutils_system.external_command(open_cmd .. path)
end