## ThunarVfsUser

ThunarVfsUser

## Synopsis

    #include <thunar-vfs/thunar-vfs.h>

                        ThunarVfsUser;
    GList*              thunar_vfs_user_get_groups          (ThunarVfsUser *user);
    ThunarVfsGroup*     thunar_vfs_user_get_primary_group   (ThunarVfsUser *user);
    ThunarVfsUserId     thunar_vfs_user_get_id              (ThunarVfsUser *user);
    const gchar*        thunar_vfs_user_get_name            (ThunarVfsUser *user);
    const gchar*        thunar_vfs_user_get_real_name       (ThunarVfsUser *user);
    gboolean            thunar_vfs_user_is_me               (ThunarVfsUser *user);

## Object Hierarchy

      GObject
       +----ThunarVfsUser

## Description

## Details

### ThunarVfsUser

    typedef struct _ThunarVfsUser ThunarVfsUser;

### thunar_vfs_user_get_groups ()

    GList*              thunar_vfs_user_get_groups          (ThunarVfsUser *user);

Returns all ThunarVfsGroups that `user` belongs to. The returned list and the ThunarVfsGroups contained within the list are owned by `user` and must not be freed or altered by the caller.

Note that if `user` has a primary group, this group will also be contained in the returned list.

`user` : | a ThunarVfsUser.
Returns : | the groups that `user` belongs to.

### thunar_vfs_user_get_primary_group ()

    ThunarVfsGroup*     thunar_vfs_user_get_primary_group   (ThunarVfsUser *user);

Returns the primary group of `user` or `NULL` if `user` has no primary group.

No reference is taken for the caller, so you must not call `g_object_unref()` on the returned object.

`user` : | a ThunarVfsUser.
Returns : | the primary group of `user` or `NULL`.

### thunar_vfs_user_get_id ()

    ThunarVfsUserId     thunar_vfs_user_get_id              (ThunarVfsUser *user);

Returns the unique id of `user`.

`user` : | a ThunarVfsUser.
Returns : | the unique id of `user`.

### thunar_vfs_user_get_name ()

    const gchar*        thunar_vfs_user_get_name            (ThunarVfsUser *user);

Returns the name of `user`. If the system is unable to determine the account name of `user`, it'll return the user id as string.

`user` : | a ThunarVfsUser.
Returns : | the name of `user`.

### thunar_vfs_user_get_real_name ()

    const gchar*        thunar_vfs_user_get_real_name       (ThunarVfsUser *user);

Returns the real name of `user` or `NULL` if the real name for `user` is not known to the underlying system.

`user` : | a ThunarVfsUser.
Returns : | the real name for `user` or `NULL`.

### thunar_vfs_user_is_me ()

    gboolean            thunar_vfs_user_is_me               (ThunarVfsUser *user);

Checks whether the owner of the current process is described by `user`.

`user` : | a ThunarVfsUser.
Returns : | `TRUE` if `user` is the owner of the current process, else `FALSE`.