Ignore the "region" gsettings value

Bug #1722002 reported by Gunnar Hjalmarsson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gnome-session (Ubuntu)
Fix Released
Medium
Gunnar Hjalmarsson

Bug Description

The /usr/bin/gnome-session wrapper sets some LC_* variables based on the "region" gsettings value. Since we rely on ~/.pam_environment for those variables, setting them from /usr/bin/gnome-session is redundant, and may occasionally cause unexpected behavior.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Steps to show an example when this issue matters:

* English install from a US location
* Change formats from g-c-c to en_DK.UTF-8
  - to get reasonable date formats
  - this changes both "region" and ~/.pam_environment
* Install French from Language Support
* Change formats from Language Support to fr_FR.UTF-8
  - this changes ~/.pam_environment but not "region"
* Relogin

Result:

$ cat .pam_environment
LC_NUMERIC=fr_FR.UTF-8
LC_TIME=fr_FR.UTF-8
LC_MONETARY=fr_FR.UTF-8
LC_PAPER=fr_FR.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=fr_FR.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
PAPERSIZE=a4
$ locale
LANG=en_US.UTF-8
LANGUAGE=
LC_CTYPE="en_US.UTF-8"
LC_NUMERIC=en_DK.UTF-8
LC_TIME=en_DK.UTF-8
LC_COLLATE="en_US.UTF-8"
LC_MONETARY=en_DK.UTF-8
LC_MESSAGES="en_US.UTF-8"
LC_PAPER=en_DK.UTF-8
LC_NAME=fr_FR.UTF-8
LC_ADDRESS=fr_FR.UTF-8
LC_TELEPHONE=fr_FR.UTF-8
LC_MEASUREMENT=en_DK.UTF-8
LC_IDENTIFICATION=fr_FR.UTF-8
LC_ALL=

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gnome-session - 3.26.1-0ubuntu3

---------------
gnome-session (3.26.1-0ubuntu3) artful; urgency=medium

  [ Gunnar Hjalmarsson ]
  * debian/patches/ignore_gsettings_region.patch:
    - Ignore the "region" gsettings value - users' setting of LC_*
      variables saved in ~/.pam_environment (LP: #1722002).
  * debian/control, debian/control.in:
    - Suggest gnome-user-docs instead of gnome-user-guide
      (LP: #1691867).

 -- Gunnar Hjalmarsson <email address hidden> Mon, 09 Oct 2017 20:01:00 +0200

Changed in gnome-session (Ubuntu):
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.