Libxfce4util.Consolekit¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Libxfce4util.Consolekit(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod get()¶
- Returns:
A reference to the singleton object, to be released with
GObject.Object.unref
().- Return type:
Create a new
Libxfce4util.Consolekit
instance or increase reference count.New in version 4.19.1.
- can_hibernate()¶
- Raises:
- Returns:
True
if the D-Bus request was successful,False
otherwise and error is set.- Return type:
Check whether ConsoleKit can trigger and has authorization for Hibernate.
New in version 4.19.1.
- can_hybrid_sleep()¶
- Raises:
- Returns:
True
if the D-Bus request was successful,False
otherwise and error is set.- Return type:
Check whether ConsoleKit can trigger and has authorization for HybridSleep.
New in version 4.19.1.
- can_power_off()¶
- Raises:
- Returns:
True
if the D-Bus request was successful,False
otherwise and error is set.- Return type:
Check whether ConsoleKit can trigger PowerOff.
New in version 4.19.1.
- can_reboot()¶
- Raises:
- Returns:
True
if the D-Bus request was successful,False
otherwise and error is set.- Return type:
Check whether ConsoleKit can trigger Reboot.
New in version 4.19.1.
- can_suspend()¶
- Raises:
- Returns:
True
if the D-Bus request was successful,False
otherwise and error is set.- Return type:
Check whether ConsoleKit can trigger and has authorization for Suspend.
New in version 4.19.1.
- hibernate(polkit_interactive)¶
- Parameters:
polkit_interactive (
bool
) – whether PolicyKit should ask the user to authenticate if needed- Raises:
- Returns:
True
if the D-Bus request was successful,False
otherwise and error is set.- Return type:
Ask ConsoleKit to trigger Hibernate.
New in version 4.19.1.
- hybrid_sleep(polkit_interactive)¶
- Parameters:
polkit_interactive (
bool
) – whether PolicyKit should ask the user to authenticate if needed- Raises:
- Returns:
True
if the D-Bus request was successful,False
otherwise and error is set.- Return type:
Ask ConsoleKit to trigger HybridSleep.
New in version 4.19.1.
- power_off(polkit_interactive)¶
- Parameters:
polkit_interactive (
bool
) – whether PolicyKit should ask the user to authenticate if needed- Raises:
- Returns:
True
if the D-Bus request was successful,False
otherwise and error is set.- Return type:
Ask ConsoleKit to trigger PowerOff.
New in version 4.19.1.
- reboot(polkit_interactive)¶
- Parameters:
polkit_interactive (
bool
) – whether PolicyKit should ask the user to authenticate if needed- Raises:
- Returns:
True
if the D-Bus request was successful,False
otherwise and error is set.- Return type:
Ask ConsoleKit to trigger Reboot.
New in version 4.19.1.