Open karai17 opened 11 years ago
Not likely, no. os.execute is basically just calling system(...) I think -- Native Client doesn't support access to the underlying operating system directly.
What are you trying to execute? It's possible that you could work around it in other ways.
In my particular application, I am executing a call to the default browser.
if love._os == "Windows" then os.execute("start https://google.com") end
if love._os == "OS X" then os.execute("open https://google.com") end
if love._os == "Linux" then os.execute("xdg-open https://google.com") end
That seems like a common use-case. I'll see how much work/how nasty it is to hack in support for os.execute("xdg-open
Perhaps interpreting start, open, and xdg-open as a call for a new tab?
Somewhat expected, but still an issue. I tested a love file that contains an os.execute() command that does not fire. Might there be any way to get this to work?