From 83c1a5789add2571da9db04e27303e44ff24ecaa Mon Sep 17 00:00:00 2001 From: Bill Ferguson Date: Sat, 10 Mar 2018 13:07:19 -0500 Subject: [PATCH] Changed wine check to operating system isn't windows --- lib/dtutils/file.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/lib/dtutils/file.lua b/lib/dtutils/file.lua index 5ffe634..c321644 100644 --- a/lib/dtutils/file.lua +++ b/lib/dtutils/file.lua @@ -67,12 +67,7 @@ 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 == "linux" or - dt.configuration.running_os == "unix" or - dt.configuration.running_os == "macos") then - result = "wine " .. path - elseif dt.configuration.running_os == "macos" then + if (string.match(path, ".exe$") or string.match(path, ".EXE%")) and dt.configuration.running_os ~= "windows" then result = "open -a -W " .. path else result = path