chickadee » chicken » process-context » posix » current-user-name

current-user-nameprocedure

Get the login name corresponding to the real user-id of the current process from the system password database.

On Windows, there's no user-id and no distinction between real and effective user, but this procedure will return the username associated with the current process, so it is safe to use.