[Resolved] XFCE notifications service

Hello,

I try by all means to activate the xfce4-notifyd service.

No traces in Manjaro's Wiki - or I didn't look hard enough.

I followed the Archlinux Wiki, but it doesn't work.

In the panel, I have "no notification will be displayed because the service is not started.

I tried sudo systemctl --user start xfce-notifyd: it doesn't work.
sudo --user start xfce-notifyd-config: does not work either.

How to start this service.

The window opens, but I have a red strip that says:
"The notification service is not running. No notification will be displayed."
Personally, I only have this feedback:

$ systemctl status |grep xfce4-notifyd
           │     ├─23844 grep --colour=auto xfce4-notifyd

When I look at the statute:

systemctl status xfce4-notifyd.service
● xfce4-notifyd.service - XFCE notifications service
   Loaded: loaded (/usr/lib/systemd/user/xfce4-notifyd.service; linked; vendor preset: disabled)
   Active: failed (Result: exit-code) since Mon 2019-07-29 00:45:01 CEST; 21s ago
  Process: 23904 ExecStart=/usr/lib/xfce4/notifyd/xfce4-notifyd (code=exited, status=1/FAILURE)
 Main PID: 23904 (code=exited, status=1/FAILURE)

jui 29 00:45:01 bruno systemd[1]: Starting XFCE notifications service...
jui 29 00:45:01 bruno xfce4-notifyd[23904]: Unable to init server: Impossible de se connecter : Connexion refusée
jui 29 00:45:01 bruno xfce4-notifyd[23904]: cannot open display: 
jui 29 00:45:01 bruno systemd[1]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
jui 29 00:45:01 bruno systemd[1]: xfce4-notifyd.service: Failed with result 'exit-code'.
jui 29 00:45:01 bruno systemd[1]: Failed to start XFCE notifications service.

And xfdesktop-gtk3 has no problem:

[bruno@bruno ~]$ pacman -Qi xfdesktop-gtk3
Nom                      : xfdesktop-gtk3
Version                  : 4.13.5-4
Description              : A desktop manager for Xfce
Architecture             : x86_64
URL                      : http://www.xfce.org/
Licences                 : GPL2
Groupes                  : xfce4-gtk3
Fournit                  : xfdesktop
Dépend de                : exo-gtk3  garcon-gtk3  hicolor-icon-theme  libwnck3  libxfce4ui-gtk3  thunar-gtk3
Dépendances opt.         : --
Requis par               : --
Optionnel pour           : --
Est en conflit avec      : xfce4-menueditor  xfdesktop
Remplace                 : xfce4-menueditor
Taille installée         : 2,94 MiB
Paqueteur                : Philip Mueller <philm@manjaro.org>
Compilé le               : jeu 18 jui 2019 21:35:59 CEST
Installé le              : dim 28 jui 2019 00:25:33 CEST
Motif d’installation     : Explicitement installé
Script d’installation    : Non
Validé par               : Signature

This https://forum.manjaro.org/t/xfce4-notifyd-gtk3-the-notification-service-is-not-running-solved/60627/18 or even lemust intervenes doesn't solve anything for me either!

And journalctl -xe :

[bruno@bruno ~]$ journalctl -xe
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://forum.manjaro.org/c/technical-issues-and-assistance
-- 
-- An ExecStart= process belonging to unit xfce4-notifyd.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
jui 29 00:56:52 bruno systemd[1]: xfce4-notifyd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://forum.manjaro.org/c/technical-issues-and-assistance
-- 
-- The unit xfce4-notifyd.service has entered the 'failed' state with result 'exit-code'.
jui 29 00:56:52 bruno systemd[1]: Failed to start XFCE notifications service.
-- Subject: L'unité (unit) xfce4-notifyd.service a échoué
-- Defined-By: systemd
-- Support: https://forum.manjaro.org/c/technical-issues-and-assistance
-- 
-- L'unité (unit) xfce4-notifyd.service a échoué, avec le résultat failed.
jui 29 00:56:52 bruno audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xfce4-notifyd comm="systemd">
jui 29 00:56:52 bruno kernel: audit: type=1130 audit(1564354612.147:158): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=>
jui 29 00:56:52 bruno sudo[24458]: pam_unix(sudo:session): session closed for user root
jui 29 00:57:42 bruno dbus-daemon[798]: [session uid=1000 pid=798] Activating service name='org.freedesktop.thumbnails.Cache1' >
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer heif-thumbnailer -s %s %i %o
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer atril-thumbnailer -s %s %u %o
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer evince-thumbnailer -s %s %u %o
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer ffmpegthumbnailer -i %i -o %o -s %s -f
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer gsf-office-thumbnailer -i %i -o %o -s %s
jui 29 00:57:42 bruno dbus-daemon[798]: [session uid=1000 pid=798] Successfully activated service 'org.freedesktop.thumbnails.C>
lines 1280-1310/1310 (END)
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://forum.manjaro.org/c/technical-issues-and-assistance
-- 
-- An ExecStart= process belonging to unit xfce4-notifyd.service has exited.
-- 
-- The process' exit code is 'exited' and its exit status is 1.
jui 29 00:56:52 bruno systemd[1]: xfce4-notifyd.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://forum.manjaro.org/c/technical-issues-and-assistance
-- 
-- The unit xfce4-notifyd.service has entered the 'failed' state with result 'exit-code'.
jui 29 00:56:52 bruno systemd[1]: Failed to start XFCE notifications service.
-- Subject: L'unité (unit) xfce4-notifyd.service a échoué
-- Defined-By: systemd
-- Support: https://forum.manjaro.org/c/technical-issues-and-assistance
-- 
-- L'unité (unit) xfce4-notifyd.service a échoué, avec le résultat failed.
jui 29 00:56:52 bruno audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xfce4-notifyd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
jui 29 00:56:52 bruno kernel: audit: type=1130 audit(1564354612.147:158): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=xfce4-notifyd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=failed'
jui 29 00:56:52 bruno sudo[24458]: pam_unix(sudo:session): session closed for user root
jui 29 00:57:42 bruno dbus-daemon[798]: [session uid=1000 pid=798] Activating service name='org.freedesktop.thumbnails.Cache1' requested by ':1.25' (uid=1000 pid=890 comm="/usr/bin/Thunar --daemon ")
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer heif-thumbnailer -s %s %i %o
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer atril-thumbnailer -s %s %u %o
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer evince-thumbnailer -s %s %u %o
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer ffmpegthumbnailer -i %i -o %o -s %s -f
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
jui 29 00:57:42 bruno org.freedesktop.thumbnails.Cache1[798]: Registered thumbnailer gsf-office-thumbnailer -i %i -o %o -s %s
jui 29 00:57:42 bruno dbus-daemon[798]: [session uid=1000 pid=798] Successfully activated service 'org.freedesktop.thumbnails.Cache1

In that case you need to install xfce4-notifyd-gtk3 and/to remove/replace the xfce4-notifyd package, but also you have to understand that the xfce4-notifyd.service is a USER unit.
From terminal:
sudo systemctl disable xfce4-notifyd.service --now
and then
sudo systemctl --user enable xfce4-notifyd.service --now

2 Likes

Thank you, your answer resolves my problem! :grin:

Forum kindly sponsored by Bytemark