Trying to change locale / date format in openSUSE Tumbleweed

Using MATE in a multi-language environment, I solve this problem as follow5. :

  1. Before logging in as a user, I switch to the console mode.
  2. I edit the /etc/locale.conf file so that the needed locale is set
  3. I log in (still in console mode) as the user
  4. As user, I edit (create) the following files:
    4.1. .bashrc and add (i.e.): export LANG=fr_BE.UTF-8 and export LANGUAGE=fr_BE.UTF-8 (2 lines)
    4.2. .dmrc and add:[Desktop] Session=mate Language=fr_BE.utf8 (3 lines)
    4.3 .profile and add (or uncomment): export LANG=fr_BE.UTF-8
  5. I log out as a user
  6. I reboot the computer
  7. In graphical mode I log in as a user and if everything went OK, I should have the wished locale working.
1 Like

That makes more sense to me. PAM reads ~/.profile at login and applies it to the entire user session, including MATE, whereas ~/.bashrc is normally only read by interactive non-login shells. A quick search suggests that ~/.dmrc is a legacy file primarily used by LightDM (so only relevant if LightDM is in use). On modern systems using PAM and systemd/logind, ~/.profile is the authoritative place for per-user locale settings.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.