Artix Linux Forum

Artix Linux => System => Topic started by: GlitterMonster on 10 October 2023, 00:51:53

Title: Plasma notifications overidden by xfce daemon.
Post by: GlitterMonster on 10 October 2023, 00:51:53
An XFCE notification daemon is prioritized over the Plasma daemon while my Plasma-user is in Plasma for some reason.

I have several DE's on my system and would like to keep them. Each has a separate user. I haven't had any config issues before this.

configure, defaults, and reset buttons are all unresponsive in kde notifications panel.
i unchecked xfce notifications in xfce4-settings dialog (opened via terminal). it had no effect.
the only forum fixes i could find suggest uninstalling notifyd and using ubuntu commands. when trying to uninstall notifyd though, it breaks dependencies.

I terminated notifyd in sytem-monitor, but the configure dialog was still unresponsive in system settings.
I downloaded a KDE-full notification widget, but it was unresponsive and gave the error:
file:///home/vkde/.local/share/plasma/plasmoids/org.kde.plasma.notifications/contents/ui/main.qml:29:1: module "org.kde.plasma.private.notifications" version 1.0 is not installed

The Arch wiki exceeds my comprehension. I did not understand which program should be used for Plasma.
https://wiki.archlinux.org/title/Desktop_notifications

Which notification service is used for Plasma?
Is there an easy way to set which notification daemon is prioritized for the environment?


https://i.imgur.com/0bhfJ0f.jpg



Title: Re: Plasma notifications overidden by xfce daemon.
Post by: gripped on 10 October 2023, 15:40:19
By looking in the package xfce4-notifyd I can see it installs
/etc/xdg/autostart/xfce4-notifyd

/etc/xdg/autostart is the location for system wide autostart.

So if you want to prevent that you need to remove this file.
You then want to have an autostart running
Code: [Select]
exec /usr/lib/xfce4/notifyd/xfce4-notifyd
In the relevant users autostart.

You could probably just use the file /etc/xdg/autostart/xfce4-notifyd in ~/.config/autostart
Of marginal interest is /etc/xdg/autostart/xfce4-notifyd contain systemd cruft
Code: [Select]
Exec=sh -c "systemctl --user start xfce4-notifyd.service 2>/dev/null || exec /usr/lib/xfce4/notifyd/xfce4-notifyd"
So it tries to start a systemd user service and when that fails it runs /usr/lib/xfce4/notifyd/xfce4-notifyd

The problem you will have is anytime the package xfce4-notifyd is updated the file /etc/xdg/autostart/xfce4-notifyd will need deleting again.
Other than the package being changed not to install /etc/xdg/autostart/xfce4-notifyd another option is to add it to to /etc/pacman.conf 'IgnorePkg'. You'll get a warning when it gets ignored. Then just update it specifically and delete the file straight after