diff --git a/contrib/gimp.lua b/contrib/gimp.lua index c0fba7e..8366e11 100644 --- a/contrib/gimp.lua +++ b/contrib/gimp.lua @@ -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 diff --git a/lib/dtutils/file.lua b/lib/dtutils/file.lua index c1cd94f..aaf5927 100644 --- a/lib/dtutils/file.lua +++ b/lib/dtutils/file.lua @@ -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