X-Git-Url: https://git.realraum.at/?a=blobdiff_plain;f=ansible%2Froles%2Fbase%2Ffiles%2Fxdg_runtime_dir.sh;fp=ansible%2Froles%2Fbase%2Ffiles%2Fxdg_runtime_dir.sh;h=d2428b12594f9a48fefaa341f8d8448ad5a37862;hb=84aa5a99e4426e4e24031187f727af92ef540562;hp=0000000000000000000000000000000000000000;hpb=01f62a252f9a86729bacefb9c6fd2fd7675a2694;p=noc.git diff --git a/ansible/roles/base/files/xdg_runtime_dir.sh b/ansible/roles/base/files/xdg_runtime_dir.sh new file mode 100644 index 0000000..d2428b1 --- /dev/null +++ b/ansible/roles/base/files/xdg_runtime_dir.sh @@ -0,0 +1,4 @@ +# Set XDG_RUNTIME_DIR correctly +if [ "$UID" -ne 0 ] && [ -z "${XDG_RUNTIME_DIR}" ]; then + export XDG_RUNTIME_DIR="/run/user/$(id -u)" +fi