Crates.io | dbus-launch |
lib.rs | dbus-launch |
version | 0.2.0 |
source | src |
created_at | 2020-08-30 12:31:00.921237 |
updated_at | 2020-08-30 12:31:00.921237 |
description | A D-Bus daemon launcher |
homepage | |
repository | https://github.com/tmiasko/dbus-launch-rs |
max_upload_size | |
id | 282670 |
size | 37,757 |
A tool for starting an new isolated instance of a dbus-daemon or a dbus-broker, with option to configure and start services using D-Bus activation.
// Start the dbus-daemon.
let daemon = dbus_launch::Launcher::daemon()
.launch()
.expect("failed to launch dbus-daemon");
// Use dbus-daemon by connecting to `daemon.address()` ...
// Stop the dbus-daemon process by dropping it.
drop(daemon);
use std::path::Path;
let daemon = dbus_launch::Launcher::daemon()
.service("com.example.Test", Path::new("/usr/lib/test-service"))
.launch()
.expect("failed to launch dbus-daemon");
// Use com.example.Test service by connecting to `daemon.address()` ...
Licensed under MIT License.