diff --git a/lib/dtutils/file.lua b/lib/dtutils/file.lua index c321644..9d5a805 100644 --- a/lib/dtutils/file.lua +++ b/lib/dtutils/file.lua @@ -67,7 +67,10 @@ function dtutils_file.check_if_bin_exists(bin) if string.len(path) > 0 then if dtutils_file.check_if_file_exists(path) then path = "\"" .. path .. "\"" - 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" or + result = "wine " .. path + elseif dt.configuration.running_os == "macos" then result = "open -a -W " .. path else result = path