Is there a way to detect the user account that's logged in (and hence running the gadget) I'm wanting to interact with the user's home directory but can't find out what to detect it from the gadget.
var currentuser = System.Environment.getEnvironmentVariable("UserName")
You can use other variables like that too, like temp to find the temp folder. I've actually created a gadget which is on the gallery to show the current logged on user and their user tile aswell.
Current logged in user
DMAR330
var currentuser = System.Environment.getEnvironmentVariable("UserName")
You can use other variables like that too, like temp to find the temp folder. I've actually created a gadget which is on the gallery to show the current logged on user and their user tile aswell.
nhd
Thanks none the less :)