Polkit.SystemBusName

g GObject.GInterface GObject.GInterface Polkit.Subject Polkit.Subject GObject.GInterface->Polkit.Subject GObject.Object GObject.Object Polkit.SystemBusName Polkit.SystemBusName GObject.Object->Polkit.SystemBusName Polkit.Subject->Polkit.SystemBusName

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Polkit.Subject (7)

Structs:

GObject.ObjectClass (5)

class

new (name)

get_name ()

get_process_sync (cancellable)

get_user_sync (cancellable)

set_name (name)

Virtual Methods

Inherited:

GObject.Object (7), Polkit.Subject (6)

Properties

Name

Type

Flags

Short Description

name

str

r/w/c

The unique name on the system message bus

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Class Details

class Polkit.SystemBusName(**kwargs)
Bases:

GObject.Object, Polkit.Subject

Abstract:

No

Structure:

Polkit.SystemBusNameClass

An object that represents a process owning a unique name on the system bus.

classmethod new(name)
Parameters:

name (str) – A unique system bus name.

Returns:

A Polkit.SystemBusName. Free with GObject.Object.unref().

Return type:

Polkit.Subject

Creates a new Polkit.SystemBusName for name.

get_name()
Returns:

The unique system bus name for self. Do not free, this string is owned by self.

Return type:

str

Gets the unique system bus name for self.

get_process_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

A Polkit.UnixProcess object or None if error is set.

Return type:

Polkit.Subject or None

Synchronously gets a Polkit.UnixProcess object for self

  • the calling thread is blocked until a reply is received.

get_user_sync(cancellable)
Parameters:

cancellable (Gio.Cancellable or None) – A Gio.Cancellable or None.

Raises:

GLib.Error

Returns:

A Polkit.UnixUser object or None if error is set.

Return type:

Polkit.UnixUser or None

Synchronously gets a Polkit.UnixUser object for self; the calling thread is blocked until a reply is received.

set_name(name)
Parameters:

name (str) – A unique system bus name.

Sets the unique system bus name for self.

Property Details

Polkit.SystemBusName.props.name
Name:

name

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT

The unique name on the system message bus.