wf-shell icon indicating copy to clipboard operation
wf-shell copied to clipboard

Using notifications widget while an xdg desktop portal backend providing notifications is running

Open AKArien opened this issue 2 months ago • 3 comments

I have the gtk and wlr desktop portals installed, with the following configuration :

[preferred]
default=gtk
org.freedesktop.impl.portal.Screenshot=wlr
org.freedesktop.impl.portal.ScreenCast=wlr
org.freedesktop.impl.portal.Notification=none

The gtk backend provides notifications, which i tried turning off with the =none line, to no success. I am trying to have the notifications go through the notifications panel widget.

Apologies if it is only partially a wf-shell problem

@NamorNiradnug taking the liberty to tag you, since you seem to be the main author of the widget

Thanks !

AKArien avatar Nov 04 '25 13:11 AKArien

AFAIK, the desktop portal provides notifications support for clients (mainly for flatpak), i.e. clients sends their notifications through the portal and the portal forwards the notifications to the notification center (the wf-shell's widget in your case).

Hence, you probably want to enable the portal.

NamorNiradnug avatar Nov 04 '25 13:11 NamorNiradnug

Thanks ! but erm… how do… do that ? Apologies, but it is unclear to me

AKArien avatar Nov 04 '25 13:11 AKArien

Thanks ! but erm… how do… do that ? Apologies, but it is unclear to me

Just removing the org.freedesktop.impl.portal.Notification=none should work ig.

If it doesn't, try sending a notification with notify-send and see whether it works or not.

  • If it does, then probably only flatpak applications doesn't work and something is wrong with your portal config (I don't use flatpak and can't help in the case).
  • Otherwise probably something is wrong on the wf-shell's side. Check the logs of wf-shell, there may be something usefull.

NamorNiradnug avatar Nov 04 '25 14:11 NamorNiradnug

Unfortunately, doesn’t work (for all notifications, both flatpak and regular), the Notification=none was added in a fruitless attempt to ignore the gtk portal. It it does seem to be ignored though, with the the gtk portal still picking up notifications ?

Also, the notifications worked previously, at times when i had my xdg portals broken. With the lack of anything in the wf-shell logs, and seemingly all other notifications daemons taking precedence over the widget one #299, do you think it is being « eaten first » by the gtk ? I’m not very familiar with how this works.

AKArien avatar Nov 04 '25 14:11 AKArien