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
This commit is contained in:
@@ -119,6 +119,10 @@ local function gimp_edit(storage, image_table, extra_data) --finalize
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if dt.configuration.running_os == "macos" then
|
||||||
|
gimp_executable = "open -W -a " .. gimp_executable
|
||||||
|
end
|
||||||
|
|
||||||
-- list of exported images
|
-- list of exported images
|
||||||
local img_list
|
local img_list
|
||||||
|
|
||||||
|
|||||||
@@ -68,8 +68,6 @@ function dtutils_file.check_if_bin_exists(bin)
|
|||||||
if dtutils_file.check_if_file_exists(path) then
|
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
|
if (string.match(path, ".exe$") or string.match(path, ".EXE$")) and dt.configuration.running_os ~= "windows" then
|
||||||
result = "wine " .. "\"" .. path .. "\""
|
result = "wine " .. "\"" .. path .. "\""
|
||||||
elseif dt.configuration.running_os == "macos" then
|
|
||||||
result = "open -W -a " .. "\"" .. path .. "\""
|
|
||||||
else
|
else
|
||||||
result = "\"" .. path .. "\""
|
result = "\"" .. path .. "\""
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user