-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DBus reason of closing #104
Comments
oh cool, thanks for pointing this out, I hadn't noticed that yet |
The closure passed into [`NotificationHandle::on_close()`](https://docs.rs/notify-rust/4.5.0/notify_rust/struct.NotificationHandle.html#method.on_close) can now also take a parameter that will receive the reason why this Notification has been closed. Fixes #104 Thanks for noticing @tonyshkurenko
@tonyshkurenko how about this? |
actually, since you mention "The second param it's the only way to handle click on notification itself" what Desktop environment are you using? because the under KDE at least clicking on the notification triggers the |
I tested on xfce4 and gnome. Thanks for your help! |
thank you for pointing this out |
Could you please also export
|
could you post the code you tried please? |
also: if you like you could open a PR that fixes that |
I will file a PR then :) |
Regarding code I've tried, I simplified it a bit, but generally it's:
After PR it's possible now to do:
|
I hadn't |
Please, do not ignore this value here:
notify-rust/src/xdg/dbus_rs.rs
Line 233 in 3ab49e7
According to the spec: https://specifications.freedesktop.org/notification-spec/latest/ar01s09.html
The second param it's the only way to handle click on notification itself
The text was updated successfully, but these errors were encountered: