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". http://livecode.com/resources/api/#livecode_script/open_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...

                                 Peter

--
Dr Peter Brett <peter.br...@livecode.com>
LiveCode Engine Development Team


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to