Search code examples
xulxulrunner

Opening the user's home folder?


My XULRunner application has a button named "Show Recordings". Pressing it should result in Windows Explorer opening the folder for the user. How can I achieve this?

I can't find it in the File I/O documentation, perhaps I'm looking in the wrong place.

Edit The problem is not finding the path, but telling the system to open the folder. I can't seem to find a "openFolder" function.


Solution

  • You're looking for the reveal() method on nsILocalFile.