[Xfce-bugs] [Bug 15440] No Keyring password prompt on login

bugzilla-daemon at xfce.org bugzilla-daemon at xfce.org
Tue Jul 16 11:00:16 CEST 2019


https://bugzilla.xfce.org/show_bug.cgi?id=15440

--- Comment #18 from Maurizio Galli <maurizio.galli at gmail.com> ---
Comment on attachment 8780
  --> https://bugzilla.xfce.org/attachment.cgi?id=8780
Based on openSUSE patch

>From 0de6ed2141b39d7441ef338d4d9dba8c90a80d8c Mon Sep 17 00:00:00 2001
From: "Maurizio Galli (MauG)" <maurizio.galli at gmail.com>
Date: Tue, 16 Jul 2019 16:56:38 +0800
Subject: [PATCH] Set XAUTHLOCALHOSTNAME in systemd user session

Fixes 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 6562a117..ff044edf 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

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the Xfce-bugs mailing list