Thursday, April 1, 2010

Can AIR apps in sudo/admin mode?

Will AIR for linux support running AIR apps in sudo mode?
Meaning, will it be able to modify a setting that requires the app
to run in sudo mode?



If not, will there be an api to check if the app in running
with sudo or admin privileges. This would also be great for Windows
and Mac versions.Can AIR apps in sudo/admin mode?
No, AIR will not having a setting for this. But, you can use
sudo yourself to start the application.



Oliver Goldman | Adobe AIR Engineering



Can AIR apps in sudo/admin mode?


So what if the application needs to write to a config file
that require sudo user? How do we manage that task? will the AIR
runtime prompt the user to enter a sudo password or will it throw a
file access error?



I think it would be easier for AIR to prompt the user for
sudo access so the developer would not have to worry about the sudo
access.




AIR will throw a file access error in this case. Of course it
would be easier if AIR handled this for you, but this is not a use
case we were targeting in 1.0. If you'd like to submit this use
case for future consideration, you can do so at
www.adobe.com/go/wish.



thanks,

Oliver Goldman | Adobe AIR Engineering



No comments:

Post a Comment