Zbigniew Jędrzejewski-Szmek f4a676
From 7883270b0b0ac13a84bd4f25eba1264ae82afa79 Mon Sep 17 00:00:00 2001
Michal Sekletar f5f073
From: =?UTF-8?q?Adrian=20Heine=20n=C3=A9=20Lang?= <mail@adrianheine.de>
Michal Sekletar f5f073
Date: Tue, 14 Mar 2017 22:42:18 +0100
Michal Sekletar f5f073
Subject: [PATCH] man: Document when pam_systemd sets XDG_RUNTIME_DIR (#5570)
Michal Sekletar f5f073
Michal Sekletar f5f073
https://github.com/systemd/systemd/blob/f97b34a6/src/login/pam_systemd.c#L439
Michal Sekletar f5f073
(cherry picked from commit 5c50321ca9c660dac39976ab29ed2f28f872628d)
Michal Sekletar f5f073
---
Michal Sekletar f5f073
 man/pam_systemd.xml | 5 +++--
Michal Sekletar f5f073
 1 file changed, 3 insertions(+), 2 deletions(-)
Michal Sekletar f5f073
Michal Sekletar f5f073
diff --git a/man/pam_systemd.xml b/man/pam_systemd.xml
Zbigniew Jędrzejewski-Szmek f4a676
index 6e1aa0dd9a..cef5445c1c 100644
Michal Sekletar f5f073
--- a/man/pam_systemd.xml
Michal Sekletar f5f073
+++ b/man/pam_systemd.xml
Michal Sekletar f5f073
@@ -88,7 +88,7 @@
Michal Sekletar f5f073
       and so will the user's slice unit.</para></listitem>
Michal Sekletar f5f073
 
Michal Sekletar f5f073
       <listitem><para>If the last concurrent session of a user ends,
Michal Sekletar f5f073
-      the <varname>$XDG_RUNTIME_DIR</varname> directory and all its
Michal Sekletar f5f073
+      the user runtime directory <filename>/run/user/$UID</filename> and all its
Michal Sekletar f5f073
       contents are removed, too.</para></listitem>
Michal Sekletar f5f073
     </orderedlist>
Michal Sekletar f5f073
 
Michal Sekletar f5f073
@@ -192,7 +192,8 @@
Michal Sekletar f5f073
         offers the greatest possible file system feature set the
Michal Sekletar f5f073
         operating system provides. For further details, see the 
Michal Sekletar f5f073
         url="http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html">XDG
Michal Sekletar f5f073
-        Base Directory Specification</ulink>.</para></listitem>
Michal Sekletar f5f073
+        Base Directory Specification</ulink>. <varname>$XDG_RUNTIME_DIR</varname>
Michal Sekletar f5f073
+        is not set if the current user is not the original user of the session.</para></listitem>
Michal Sekletar f5f073
       </varlistentry>
Michal Sekletar f5f073
 
Michal Sekletar f5f073
     </variablelist>