I am working a Firefox add-on (which is written in JavaScript) and need to determine the Windows user currently logged on. Is there a way to do this?
You can use nsIEnvironment interface to get USERNAME environmnet variable.
USERNAME