GnomeSessionManager class

The client that connects to the GNOME Session Manager

Constructors

GnomeSessionManager({DBusClient? bus, @visibleForTesting DBusRemoteObject? object})

Properties

hashCode int
The hash code for this object.
no setterinherited
propertiesChanged Stream<List<String>>
Stream of property names as they change.
no setter
renderer String
The name of the renderer.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sessionIsActive bool
If true, the session is currently in the foreground and available for user input.
no setter
sessionName String
The name of the session that has been loaded.
no setter

Methods

canShutdown() Future<bool>
True if shutdown is available to the user, false otherwise
close() Future<void>
Closes connection to the Session Manager service.
connect() Future<void>
Connects to the Session Manager service.
isSessionRunning() Future<bool>
True if the session has entered the Running phase, false otherwise
logout({Set<GnomeLogoutMode> mode = const {}}) Future<void>
Request a logout dialog.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
reboot() Future<void>
Request a reboot dialog.
shutdown() Future<void>
Request a shutdown dialog.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

busName String
final
managerName String
final
objectPath String
final