You are not logged in.

#1 2016-06-21 23:53:23

nbd
Member
Registered: 2014-08-04
Posts: 389

xfce4-notifyd floods journal with "cannot open display" warnings

After upgrading system, during starting X sessions the journal is flooded with the following lines:

org.freedesktop.Notifications[603]: (xfce4-notifyd:1597): Gtk-WARNING **: cannot open display:
dbus-daemon[603]: Activated service 'org.freedesktop.Notifications' failed: Process org.freedesktop.Notifications exited with status 1

After the session is started, warnings don't occur anymore. I guess, in the updated system the DISPLAY variable become known to dbus on later stages than before.

I start X with 'startx', with the following .xinitrc:

#!/bin/sh

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

In /etc/X11/xinit/xinitrc.d there is only one file: 50-systemd-user.sh, which looks like this:

#!/bin/sh

systemctl --user import-environment DISPLAY XAUTHORITY

if which dbus-update-activation-environment >/dev/null 2>&1; then
        dbus-update-activation-environment DISPLAY XAUTHORITY
fi

What is needed in order that those warnings don't happen?


bing different

Offline

#2 2016-06-22 00:04:29

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: xfce4-notifyd floods journal with "cannot open display" warnings

Do you have any user services starting (and sending notifications) immediately after login? (like wanted by default.target)

Offline

#3 2016-06-22 00:21:14

nbd
Member
Registered: 2014-08-04
Posts: 389

Re: xfce4-notifyd floods journal with "cannot open display" warnings

Yes. I'll try to start that service later. Thanks for the advise.


bing different

Offline

Board footer

Powered by FluxBB