[Xfce4-commits] [xfce/xfce4-session] 01/01: Set XAUTHLOCALHOSTNAME in systemd user session (Bug #15440)

noreply at xfce.org noreply at xfce.org
Sun Jul 28 23:29:32 CEST 2019


This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository xfce/xfce4-session.

commit 2cc75280995a9f77a63d50443800aa6c089a7a85
Author: Maurizio Galli (MauG) <maurizio.galli at gmail.com>
Date:   Tue Jul 16 16:56:38 2019 +0800

    Set XAUTHLOCALHOSTNAME in systemd user session (Bug #15440)
---
 scripts/xinitrc.in.in | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/scripts/xinitrc.in.in b/scripts/xinitrc.in.in
index 6562a11..ff044ed 100755
--- a/scripts/xinitrc.in.in
+++ b/scripts/xinitrc.in.in
@@ -78,6 +78,12 @@ 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 command -v systemctl >/dev/null 2>&1 && 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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list