We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbd89fd commit 3ace70cCopy full SHA for 3ace70c
profile.d/40-desktopenvironments
@@ -3,10 +3,15 @@
3
[ -f /etc/locale.conf ] && . /etc/locale.conf
4
export LANG
5
if test -z "${XDG_RUNTIME_DIR}"; then
6
- export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
7
- if ! test -d "${XDG_RUNTIME_DIR}"; then
8
- mkdir "${XDG_RUNTIME_DIR}"
9
- chmod 0700 "${XDG_RUNTIME_DIR}"
+ if test -d "/run/user/${UID}"; then
+ # Systemd uses this as XDG_RUNTIME_DIR
+ export XDG_RUNTIME_DIR=/run/user/${UID}
+ else
10
+ export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
11
+ if ! test -d "${XDG_RUNTIME_DIR}"; then
12
+ mkdir "${XDG_RUNTIME_DIR}"
13
+ chmod 0700 "${XDG_RUNTIME_DIR}"
14
+ fi
15
fi
16
17
0 commit comments