Xfce Forum

Sub domains
 

You are not logged in.

#1 2019-08-02 21:02:51

obelix6603
Member
From: Belgium
Registered: 2019-08-02
Posts: 1

Manjaro XFCE and notifieur.desktop

Hello,

On Manjaro XFCE "stable", I have a problem that the notifications service although started does not display:

● 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 Fri 2019-08-02 22:54:35 CEST; 18s ago
  Process: 5621 ExecStart=/usr/lib/xfce4/notifyd/xfce4-notifyd (code=exited, status=1/FAILURE)
 Main PID: 5621 (code=exited, status=1/FAILURE)

aoû 02 22:54:35 bruno systemd[1]: Starting XFCE notifications service...
aoû 02 22:54:35 bruno xfce4-notifyd[5621]: Unable to init server: Impossible de se connecter : Connexion refusée
aoû 02 22:54:35 bruno xfce4-notifyd[5621]: cannot open display: 
aoû 02 22:54:35 bruno systemd[1]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
aoû 02 22:54:35 bruno systemd[1]: xfce4-notifyd.service: Failed with result 'exit-code'.
aoû 02 22:54:35 bruno systemd[1]: Failed to start XFCE notifications service.

<i've created a file named "notifieur.desktop" in ".config/autostart" with :

[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=Notifieur
Comment=
Exec=/usr/lib/xfce4/notifyd/xfce4-notifyd
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false

I've reloaded the command "sudo /usr/bin/xfce4/notifyd/xfce4-notifyd" and the terminal says :

[bruno@bruno ~]$ sudo /usr/lib/xfce4/notifyd/xfce4-notifyd 
[sudo] Mot de passe de bruno : 

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.745: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GObject-WARNING **: 23:16:28.745: invalid (NULL) pointer instance

(xfce4-notifyd:6859): GLib-GObject-CRITICAL **: 23:16:28.745: g_signal_connect_data: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.745: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.745: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.745: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.745: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.745: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.745: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.745: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.745: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.745: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.745: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.745: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.745: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.748: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.748: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.748: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.748: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.748: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.748: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.748: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.748: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.748: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.748: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.748: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.748: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.748: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.748: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.748: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.748: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.748: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.748: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.748: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.748: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.748: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.748: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.748: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed

(xfce4-notifyd:6859): GLib-CRITICAL **: 23:16:28.748: g_propagate_error: assertion 'src != NULL' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.748: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.748: g_dbus_proxy_call_sync_internal: assertion 'G_IS_DBUS_PROXY (proxy)' failed
Un autre démon de notification est en cours d’exécution, arrêt.

(xfce4-notifyd:6859): GLib-GIO-CRITICAL **: 23:16:28.748: g_dbus_interface_skeleton_has_connection: assertion 'G_IS_DBUS_CONNECTION (connection)' failed

(xfce4-notifyd:6859): xfconf-CRITICAL **: 23:16:28.748: xfconf_init() must be called before attempting to use libxfconf!

(xfce4-notifyd:6859): GLib-GObject-WARNING **: 23:16:28.748: invalid (NULL) pointer instance

(xfce4-notifyd:6859): GLib-GObject-CRITICAL **: 23:16:28.748: g_signal_handler_disconnect: assertion 'G_TYPE_CHECK_INSTANCE (instance)' failed

But, nothing to do, I always have the same status with xfce4-notifyd.service.

Can you help me?

Last edited by obelix6603 (2019-08-02 21:26:58)


Carpe diem

Offline

#2 2019-08-03 02:02:25

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Manjaro XFCE and notifieur.desktop

obelix6603 wrote:

Hello,

On Manjaro XFCE "stable", I have a problem that the notifications service although started does not display
.....
aoû 02 22:54:35 bruno xfce4-notifyd[5621]: Unable to init server: Impossible de se connecter : Connexion refusée
aoû 02 22:54:35 bruno xfce4-notifyd[5621]: cannot open display:

It hasn't started. It failed because either the Xorg hasn't fully initialized or there is an issue with your display configuration. Most probably the first - a race condition of some sort.

<i've created a file named "notifieur.desktop" in ".config/autostart"

This shouldn't be necessary - the service should e started via systemd. What does the following return:

systemctl --user status xfce4-notifyd.service

Try removing that file for now.

I've reloaded the command "sudo /usr/bin/xfce4/notifyd/xfce4-notifyd"

Do not run this with "sudo". This service needs to run under your user profile. Try the following:

systemctl --user start xfce4-notifyd.service

You can then test with:

notify-send test test

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2019-08-03 09:40:13

obelix1502
Member
Registered: 2016-09-09
Posts: 1

Re: Manjaro XFCE and notifieur.desktop

I've done what you wrote.

I've received the note "test" but the status send :

[bruno@bruno ~]$ 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 Fri 2019-08-02 22:54:35 CEST; 12h ago
  Process: 5621 ExecStart=/usr/lib/xfce4/notifyd/xfce4-notifyd (code=exited, status=1/FAILURE)
 Main PID: 5621 (code=exited, status=1/FAILURE)

aoû 02 22:54:35 bruno systemd[1]: Starting XFCE notifications service...
aoû 02 22:54:35 bruno xfce4-notifyd[5621]: Unable to init server: Impossible de se connecter : Connexion refusée
aoû 02 22:54:35 bruno xfce4-notifyd[5621]: cannot open display: 
aoû 02 22:54:35 bruno systemd[1]: xfce4-notifyd.service: Main process exited, code=exited, status=1/FAILURE
aoû 02 22:54:35 bruno systemd[1]: xfce4-notifyd.service: Failed with result 'exit-code'.
aoû 02 22:54:35 bruno systemd[1]: Failed to start XFCE notifications service.

Offline

#4 2019-08-03 11:28:48

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Manjaro XFCE and notifieur.desktop

The command should be:

systemctl --user status xfce4-notifyd.service

Note the "--user" parameter. It should be set up as a user service.

On my system, running "systemctl status xfce4-notifyd.service" yields a "service not found" error. Have you made any manual changes to your systemd services?


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#5 2019-08-06 20:18:40

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,486

Re: Manjaro XFCE and notifieur.desktop

A follow-up note.

I just ran into this issue on a new Arch install (no display manager being used). The problem was that the systemd user environment wasn't set up properly. To do so, make sure that you run the /etc/X11/xinit/xinitrc.d/50-systemd-user.sh.

Here is a sample .xinitrc file that will do this for you. Trimmed:

#!/bin/sh
#
# ~/.xinitrc
#
# Executed by startx (run your window manager from here)

if [ -d /etc/X11/xinit/xinitrc.d ]; then
  for f in /etc/X11/xinit/xinitrc.d/*; do
    [ -x "$f" ] && . "$f"
  done
  unset f
fi

exec startxfce4

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.006 seconds, 7 queries executed - Memory usage: 576.84 KiB (Peak: 593.7 KiB) ]