get_user_name


Description:


public unowned string get_user_name ()

Get the current user name.

It is determined by:

  1. getlogin
  2. Environment variable SUDO_USER
  3. Environment variable USERHELPER_UID
  4. Environment variable USERNAME
  5. Environment variable LOGNAME
  6. Environment variable USER
  7. Environment variable LNAME

Returns:

A newly allocated string that stores current user name.


Namespace: IBus
Package: ibus-1.0