From b4ea97ce37a5a00ac633dd47af5405ebe7777746 Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sat, 10 Mar 2018 13:38:17 -0500 Subject: [PATCH] Fixed accidently wiped out check for macos --- lib/dtutils/file.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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