Get current user's username on Mac

Hey guys, I have been trying to figure out how to get the current user’s username without asking for their input. I see this done in lots of games, and I see that it is relatively simple on Windows, but the only thing I have found about Mac is the following:

“Environment.SpecialFolder.Personal”

And I don’t think is what I want; I am looking for something like this:

ID = “/Users/%currentuser%/Documents/”

Does anyone know if something like that is possible? Thanks for all the help, everybody!

-Gibson

I have figured it out, so for those of you wondering, the following seems to work.

using System;

void Start () {
print("UserName: " + Environment.UserName);
}

Hope I can help you guys ∆ Gibson