I am new to rust and notify-rust.
I am making some POC for some application and I want to integrate this.
Problem:
I am encountering some errors on Linux environment on runtime and I don't understand what is wrong on Linux. I have referred to toastify and this is my current configuration
[dependencies.notify-rust]
version = "4.5"
default-features = false
[features]
default = ["z"]
d = ["notify-rust/d"]
z = ["notify-rust/z"]
images = ["notify-rust/images"]
I have created some helper function in some crate. It looks just like this
use notify_rust::Notification;
pub fn show_toast_notification() -> Result<(), notify_rust::error::Error> {
Notification::new()
.summary("Test Summary")
.body("This is a dummy error. Testing notification")
.show()?;
Ok(())
}
I need this to work in cross platform:
Mac ( working )
Windows 10 ( working )
Windows 11 ( working )
Linux ( Not working ) - please see error below
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Error { kind: Zbus(InputOutput(Os { code: 2, kind: NotFound, message: "No such file or directory" })) }
I am confused why I am encountering an error in ZBus with "No such file or directory". Maybe you have an idea on what this could mean.
Hello,
I am new to rust and notify-rust. I am making some POC for some application and I want to integrate this.
Problem: I am encountering some errors on Linux environment on runtime and I don't understand what is wrong on Linux. I have referred to toastify and this is my current configuration
I have created some helper function in some crate. It looks just like this
I need this to work in cross platform:
I am confused why I am encountering an error in ZBus with "No such file or directory". Maybe you have an idea on what this could mean.
Thank you.