Credentials.getUnixUser

Tries to get the UNIX user identifier from credentials. This method is only available on UNIX platforms.

This operation can fail if gio.Credentials is not supported on the OS or if the native credentials type does not contain information about the UNIX user.

class Credentials
uid_t
getUnixUser
()

Return Value

Type: uid_t

The UNIX user identifier or -1 if error is set.

Throws

GException on failure.

Meta

Since

2.26