-
-
Notifications
You must be signed in to change notification settings - Fork 195
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
[Bug]: App Name is not available when using Portal Notifications #916
Comments
Please be more specific. Which specific apps have you used that trigger this behavior, and what did you expect to see? |
One example would be spotify, I would expect a notification to also contain the applications name, but it doesn't. https://specifications.freedesktop.org/notification-spec/latest/ar01s09.html The freedesktop spec defines a "app_name" which is not set when using any application from within flatpak |
Is the app flatpak, snap or host? Which portal backend do you use? |
It would be a flatpak, a good example would be Spotify (app/com.spotify.Client/x86_64/stable) |
This is very likely an issue with a specific backend + compositor. Which ones do you use? I suspect xdg-desktop-portal-gtk and not gnoms-shell? |
How do I check/change the backend? I just use awesomewm with picom |
|
is the output from the first command, so ig I got three running? |
Yes, each can provide a number of portals. the gnome backend doesn't implement notifications, gtk does and I don't know about KDE (it probably does). You can check in /usr/share/xdg-desktop-portal/portals/kde.portal if it implements the notification Interface. If both gtk and kde do then you can use dbus-monitor "interface='org.freedesktop.impl.portal.Notification'" to figure out which one gets called. |
Hi, I have the exact same problem - it is with a flatpak spotify installation on kbuntu (KDE). The error is annoying, as an error sound is played after every song. From the answers so far I don't know how to resolve the problem. Did I miss something? Thanks for any help on this! |
Seconding this, I've been using |
Same issue here with xdg-desktop-portal-gtk |
Noticed this with both the firefox and vencord flatpaks. Looks like app name isn't even a field in the portal notification spec, and there's no handling of it in the code, so I assume that's why it's coming across empty. |
The error comes from libnotify: https://gitlab.gnome.org/GNOME/libnotify/-/blob/master/libnotify/notification.c#L479. This is because the app tries to tell libnotify the app name but this feature is not available if using the notification portal. Note that the app name is something that the backend and/or xdp should know, not something the app should declare. |
Checklist
Flatpak version
1.12.7
What Linux distribution are you using?
Pop!_OS
Linux distribution version
22.04
What architecture are you using?
x86_64
How to reproduce
Expected Behavior
Portal notifications should be able to show the app name
Actual Behavior
Portal notifications won't show the app name
Additional Information
I'm not sure if its possible to expose something to get it working (I couldn't find anything in the docs related to notifications). Its quiet annoying to have notifications without an app name.
The text was updated successfully, but these errors were encountered: