From 4b32c34ebd77563d0e5ba77e628480ab258c5b7a Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Fri, 6 Jul 2018 23:04:44 -0400 Subject: [PATCH] Removed 'open -W -a' for mac commands from check_if_bin_exists since it only appears to be needed for GUIs. Added 'open -W -a' for macs using GIMP in gimp.lua --- contrib/gimp.lua | 4 ++++ lib/dtutils/file.lua | 2 -- 2 files changed, 4 insertions(+), 2 deletions(-) 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