get_user_name
Description:
public unowned string get_user_name ()
Get the current user name.
It is determined by:
getlogin
- Environment variable SUDO_USER
- Environment variable USERHELPER_UID
- Environment variable USERNAME
- Environment variable LOGNAME
- Environment variable USER
- Environment variable LNAME
Returns:
A newly allocated string that stores current user name.
|