Where to put on windows an option file accessable for all users
Peter TB Brett
peter.brett at livecode.com
Tue Jul 7 12:37:47 CEST 2015
On 2015-07-07 11:30, Tiemo Hollmann TB wrote:
> Thank you for your helpful thoughts.
> How would I differentiate the access to these two different option
> sets? On a private computer where the user usually is logged in as an
> admin I would have to offer both option sets. In a school, depending
> on the log-in the appropriate options. But I never have seen a chance
> in LiveCode to ask for the user privileges (on Win and Mac) to be able
> to differentiate it. How is this usually be done?
The easiest way would be to check whether the current user is *able* to
write to the "system" configuration file. If they can, then show the
administration options. Otherwise, show a message saying that they need
to re-run the program "as administrator".
Alternatively, you could use "open elevated process".
I'm not actually sure what is the "right" to implement this pattern in
LiveCode, so I would be very interested to hear about your solution...
Dr Peter Brett <peter.brett at livecode.com>
LiveCode Engine Development Team
More information about the use-livecode