File xdg.patch of Package pam

Support for XDG environment variables for the
su, su -, kdesu, and gnomesu (boo#1253493)

---
 modules/pam_env/pam_env.conf |    9 +++++++++
 1 file changed, 9 insertions(+)

--- a/modules/pam_env/pam_env.conf
+++ b/modules/pam_env/pam_env.conf	2025-12-11 08:33:22.597413560 +0000
@@ -71,3 +71,12 @@
 #DOLLARDOLLAR	DEFAULT=	OVERRIDE=\$${DOLLAR}
 #DOLLARPLUS	DEFAULT=\${REMOTEHOST}${REMOTEHOST}
 #ATSIGN		DEFAULT=""	OVERRIDE=\@
+
+#
+# Better support of XDG environment variables for su, su -, as well
+# for kdesu, and a (fixed) version of gnomesu which supports pam_env.
+#
+XDG_DATA_HOME   DEFAULT=@{HOME}/.local/share
+XDG_CACHE_HOME  DEFAULT=@{HOME}/.cache
+XDG_CONFIG_HOME DEFAULT=@{HOME}/.config
+XDG_STATE_HOME  DEFAULT=@{HOME}/.local/state
openSUSE Build Service is sponsored by