ubuntu_session 0.0.1 copy "ubuntu_session: ^0.0.1" to clipboard
ubuntu_session: ^0.0.1 copied to clipboard

outdated

Native Dart client library to access the GNOME Session Manager

example/example.dart

import 'package:dbus/dbus.dart';
import 'package:ubuntu_session/ubuntu_session.dart';

void main() async {
  final manager = SessionManager();
  await manager.connect();
  try {
    await manager.reboot();
  } on DBusMethodResponseException catch (e) {
    print('Error: $e');
  }
  await manager.close();
}
5
likes
0
points
1.01k
downloads

Publisher

verified publishercanonical.com

Weekly Downloads

Native Dart client library to access the GNOME Session Manager

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dbus, meta

More

Packages that depend on ubuntu_session