Merge pull request #131 from wpferguson/macos_command_fixes

MacOS Command Fixes
This commit is contained in:
wpferguson
2018-07-07 11:08:23 -04:00
committed by GitHub
2 changed files with 4 additions and 2 deletions

View File

@@ -119,6 +119,10 @@ local function gimp_edit(storage, image_table, extra_data) --finalize
return
end
if dt.configuration.running_os == "macos" then
gimp_executable = "open -W -a " .. gimp_executable
end
-- list of exported images
local img_list

View File

@@ -68,8 +68,6 @@ function dtutils_file.check_if_bin_exists(bin)
if dtutils_file.check_if_file_exists(path) then
if (string.match(path, ".exe$") or string.match(path, ".EXE$")) and dt.configuration.running_os ~= "windows" then
result = "wine " .. "\"" .. path .. "\""
elseif dt.configuration.running_os == "macos" then
result = "open -W -a " .. "\"" .. path .. "\""
else
result = "\"" .. path .. "\""
end