get_user_name


Description:

[ CCode ( cname = "g_get_user_name" ) ]
public unowned string get_user_name ()

Gets the user name of the current user.

The encoding of the returned string is system-defined. On UNIX, it might be the preferred file name encoding, or something else, and there is no guarantee that it is even consistent on a machine. On Windows, it is always UTF-8.

Returns:

the user name of the current user.


Namespace: GLib.Environment
Package: glib-2.0