From: "Maurizio Galli (MauG)" Date: Tue, 16 Jul 2019 16:32:04 +0800 Subject: [PATCH] Set XAUTHLOCALHOSTNAME in systemd user session. Fixes Bug #15440 --- scripts/xinitrc.in.in | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/scripts/xinitrc.in.in b/scripts/xinitrc.in.in index 6562a117..975eaf3f 100755 --- a/scripts/xinitrc.in.in +++ b/scripts/xinitrc.in.in @@ -78,6 +78,11 @@ cat /dev/null $XRESOURCES | xrdb -merge - # load local modmap test -r $HOME/.Xmodmap && xmodmap $HOME/.Xmodmap +# if XAUTHLOCALHOSTNAME is not set in systemd user session, starting of xfce4-notifyd, DISPLAY etc. will fail +if systemctl --user list-jobs >/dev/null 2>&1; then # user session is running + dbus-update-activation-environment --systemd XAUTHLOCALHOSTNAME=$XAUTHLOCALHOSTNAME +fi + # check if we start xfce4-session with ck-launch-session. this is only # required for starting from a console, not a login manager if test "x$XFCE4_SESSION_WITH_CK" = "x1"; then