Changed wine check to operating system isn't windows
This commit is contained in:
@@ -67,12 +67,7 @@ function dtutils_file.check_if_bin_exists(bin)
|
|||||||
if string.len(path) > 0 then
|
if string.len(path) > 0 then
|
||||||
if dtutils_file.check_if_file_exists(path) then
|
if dtutils_file.check_if_file_exists(path) then
|
||||||
path = "\"" .. path .. "\""
|
path = "\"" .. path .. "\""
|
||||||
if (string.match(path, ".exe$") or string.match(path, ".EXE%")) and
|
if (string.match(path, ".exe$") or string.match(path, ".EXE%")) and dt.configuration.running_os ~= "windows" then
|
||||||
(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
|
|
||||||
result = "open -a -W " .. path
|
result = "open -a -W " .. path
|
||||||
else
|
else
|
||||||
result = path
|
result = path
|
||||||
|
|||||||
Reference in New Issue
Block a user