Gio.Credentials.prototype.is_same_user

function is_same_user(other_credentials: Gio.Credentials): Boolean {
    // Gjs wrapper for g_credentials_is_same_user()
}
  

Checks if credentials and other_credentials is the same user.

This operation can fail if Gio.Credentials is not supported on the the OS.

Since 2.26

other_credentials

A Gio.Credentials.

Returns

true if credentials and other_credentials has the same user, false otherwise or if @error is set.