mintlocale ignores .pam_environment

Questions about applications and software
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
Ventania
Level 1
Level 1
Posts: 6
Joined: Sat Nov 27, 2021 7:56 pm

mintlocale ignores .pam_environment

Post by Ventania »

Using this in ~/.pam_environment

Code: Select all

LANGUAGE=en_US
LANG=en_US.UTF-8
LC_NUMERIC=en_US.UTF-8
LC_MONETARY=nl_NL.UTF-8
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_TIME=en_GB.UTF-8
PAPERSIZE=a4
I still get this as environment:

Code: Select all

$ locale
LANG=en_US.UTF-8
LANGUAGE=en_US
LC_CTYPE=en_US.UTF-8
LC_NUMERIC=nl_NL.UTF-8
LC_TIME=nl_NL.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=nl_NL.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=nl_NL.UTF-8
LC_NAME=nl_NL.UTF-8
LC_ADDRESS=nl_NL.UTF-8
LC_TELEPHONE=nl_NL.UTF-8
LC_MEASUREMENT=nl_NL.UTF-8
LC_IDENTIFICATION=nl_NL.UTF-8
LC_ALL=
Note that LC_NUMERIC and LC_TIME in .pam_environment apparently are overridden or ignored. Restarting the session or rebooting does not make any difference. Adding definition of these environment variables to ~/.profile does not have any impact either. All information I could find on the subject clearly states that making these definitions in .pam_environment should do the trick. Clearly it does not on my system. Where should I look to change this?

Code: Select all

$ inxi -Sxxx
System:    Host: lxmint Kernel: 5.10.0-1051-oem x86_64 bits: 64 compiler: N/A Desktop: Cinnamon 5.0.7 wm: muffin 5.0.2 
           dm: LightDM 1.30.0 Distro: Linux Mint 20.2 Uma base: Ubuntu 20.04 focal 
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
Locked

Return to “Software & Applications”