![]() |
![]() |
![]() |
Thunar-VFS Reference Manual | ![]() |
---|---|---|---|---|
#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);
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.
|
a ThunarVfsUser. |
Returns : |
the groups that user belongs to.
|
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.
|
a ThunarVfsUser. |
Returns : |
the primary group of user or NULL .
|
ThunarVfsUserId thunar_vfs_user_get_id (ThunarVfsUser *user);
Returns the unique id of user
.
|
a ThunarVfsUser. |
Returns : |
the unique id of user .
|
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.
|
a ThunarVfsUser. |
Returns : |
the name of user .
|
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.
|
a ThunarVfsUser. |
Returns : |
the real name for user or NULL .
|
gboolean thunar_vfs_user_is_me (ThunarVfsUser *user);
Checks whether the owner of the current process is
described by user
.
|
a ThunarVfsUser. |
Returns : |
TRUE if user is the owner of the current
process, else FALSE .
|