ThunarVfsUser

ThunarVfsUser

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── ThunarVfsUser

Includes

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

Description

Functions

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.

Parameters

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.

Parameters

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 .

Parameters

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.

Parameters

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.

Parameters

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 .

Parameters

user

a ThunarVfsUser.

 

Returns

TRUE if user is the owner of the current process, else FALSE.

Types and Values

ThunarVfsUser

typedef struct _ThunarVfsUser ThunarVfsUser;