I\'m trying to set my global LUA_PATH variable directly from C/C++, I\'m using Lua from my iPhone applications, so my path tends does change between applications ( each iPho
I guess this will not be possibles since, as you metioned, for security reasons each iPhone app lives in it own sandbox.
I think using setenv will set the environment variable only for the current process and it's children.
And by the way: If plan to submit your app to the AppStore, (as far as i know) script languages/interpreters are fobidden by the contract you signed.