14 lines
395 B
Lua
14 lines
395 B
Lua
|
|
local res = jarvis.system.exec("start \"\" wt.exe")
|
||
|
|
if not res.success then
|
||
|
|
jarvis.log("warn", "wt.exe not found, falling back to powershell")
|
||
|
|
res = jarvis.system.exec("start \"\" powershell.exe")
|
||
|
|
end
|
||
|
|
|
||
|
|
if res.success then
|
||
|
|
jarvis.audio.play_ok()
|
||
|
|
else
|
||
|
|
jarvis.log("error", "open terminal failed: " .. tostring(res.stderr))
|
||
|
|
jarvis.audio.play_error()
|
||
|
|
end
|
||
|
|
return { chain = false }
|