Skip to content

Commit cb5b936

Browse files
author
root
committed
profile-DE: Fixed locale configuration with sysd syntax.
1 parent 0616e14 commit cb5b936

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

profile.d/40-DE

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Set locale for legacy desktop environments that do not respect localectl.
2-
3-
export LANG=$(cat /etc/locale.conf) LC_ALL=$(cat /etc/locale.conf)
2+
# TODO: export and fallback all the stuffs as defined in locale.conf(7).
3+
. /etc/locale.conf
4+
: ${LC_ALL=${LANG=C}}
5+
export LANG LC_ALL
46
if test -z "${XDG_RUNTIME_DIR}"; then
57
export XDG_RUNTIME_DIR=/tmp/${UID}-runtime-dir
68
if ! test -d "${XDG_RUNTIME_DIR}"; then

0 commit comments

Comments
 (0)