-
Notifications
You must be signed in to change notification settings - Fork 75
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
Not working in Gnome 46 (Wayland) #218
Comments
OKay, this seems to be an issue with Wayland. Works on XOrg. |
I believe I'm seeing this issue as well on Gnome 46 (Wayland) and was not seeing it in Gnome 45 (Wayland). Oddly, the example programs provided with notify-rust that I've tried all work. For the notification sent by the application I'm working on, the notification sound is played but no notification appears in the notification center. The notification shows up in dbus-monitor, but it looks like it's immediately closed such that it never actually appears on screen. Messing around with notification properties, I found that if I add an |
that seems like you have to keep the connection open then. If you don't use one of these to functions the dbus connection is tossed immediately. |
…t user interaction if `on_close` is called on the `NotificationHandle` (related issue: hoodie/notify-rust#218). This adds a noop `on_close` to ensure that doesn't happen, but it prevents Halloy from closing until all notifications are dismissed.
…t user interaction if `on_close` is called on the `NotificationHandle` (related issue: hoodie/notify-rust#218). This adds a noop `on_close` to ensure that doesn't happen, but it prevents Halloy from closing until all notifications are dismissed.
Still trying to track this down, as having the notification be open relying on the application being open (to keep the dbus connection open) is less than ideal (and isn't necessary for the examples). The simplest case I've been able to reproduce with is the following: open a window with One difference I'm seeing on
where the notifications from |
Finally had some time to look into this further. I have not been able to able to find a way to get notifications to show from an event loop via XDG notifications. Adding the If it's possible to augment |
It seems the same problem in Gnome 46 (both X11 and Wayland) |
Issue appears to be tracked at the upstream repository with a potential workaround ( |
I bump on the same issue here - with the test setup from tauri-apps/plugins-workspace#1562, I'm able to see the notifications appear and almost instantly disappear on app startup. Would there be a way to use the |
I have this problem when running via |
I just tried with |
Fedora 41 no longer includes XOrg, so this is a pretty big issue for me now. |
This sounds like several different options by now. From what I understand this seems to be because flatpak packages must use the desktop-portal in order to send notifications. As to why that results in them showing up for an instant only is still a bit confusing. Does anybody here have any other good hypothesis? I would welcome reproducers. As for now, I would start by adding desktop-portal support. My initial attempts indicate that this is not too complicated, however the API is different enough to warrant some busy work. Concerning the |
Okay, I missed the comment above about the |
I spoke too soon. Using |
That is what I meant. |
I put together a quick-and-dirty support for desktop-portal into a fork a while back (after I also found the hacks required for |
If there were a way to simply check if a notification was closed (instead of having to wait for it) then that would be enough to work around this issue. |
I'm afraid there's just no API for that. |
If anyone is interested, until this is solved I built another workaround using the You need to use notify-rust from this branch with the (I know this is not a full replacement. Also, hints and actions are not yet supported in my branch.) |
Notifications are not being displayed in Gnome 46. For example, This will print the
NotificationHandle
but no notification shows on the desktop:The text was updated successfully, but these errors were encountered: