2024-09-01 08:20:17 +00:00
|
|
|
use zbus::{Connection, Result, MessageStream};
|
|
|
|
use futures_util::stream::TryStreamExt;
|
2024-08-27 11:28:05 +00:00
|
|
|
|
|
|
|
#[tokio::main]
|
|
|
|
async fn main() -> Result<()> {
|
|
|
|
let connection = Connection::session().await?;
|
2024-09-01 08:20:17 +00:00
|
|
|
connection
|
|
|
|
.request_name("org.freedesktop.Notifications") // Requesting dbus for this service name
|
|
|
|
.await?;
|
2024-08-25 21:10:15 +00:00
|
|
|
|
2024-09-01 08:20:17 +00:00
|
|
|
//
|
|
|
|
loop {}
|
|
|
|
}
|