UbuntuSession class
Provides a simplified interface to the DBus API of the current desktop environment.
If fallback
is true systemd-logind will be used as fallback.
Constructors
-
UbuntuSession({bool fallback = true, @visibleForTesting Map<
String, String> ? env})
Properties
- desktop → UbuntuDesktop
-
The current desktop environment.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
logout(
) → Future< void> - Log out of the active session.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reboot(
) → Future< void> - Reboot the system.
-
shutdown(
) → Future< void> - Shutdown the system.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited