Incorrect syntax when writing to ~/.pam_environment
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
accountsservice (Ubuntu) |
Fix Released
|
High
|
Gunnar Hjalmarsson | ||
Artful |
Fix Released
|
High
|
Gunnar Hjalmarsson | ||
language-selector (Ubuntu) |
Fix Released
|
High
|
Gunnar Hjalmarsson | ||
Artful |
Fix Released
|
High
|
Gunnar Hjalmarsson |
Bug Description
[Impact]
When the syntax for the entries in ~/.pam_environment was changed, the GUI in language-
An additional similar change to accountsservice (the update-langlist script) is needed; hence also an accountsservice upload to artful.
[Test Case]
* Log in to an "Ubuntu on Xorg" session.
* Open Language Support and find that it appears as if you can only
set one item before the "English" item in the language list.
With the new version, it works as expected again.
[Regression Potential]
Low. This is necessary to fix the regression caused by the change in accountsservice.
[Original description]
While investigating bug #1662031, I found out that /usr/share/
ProblemType: Bug
DistroRelease: Ubuntu 17.10
Package: accountsservice 0.6.42-0ubuntu2
ProcVersionSign
Uname: Linux 4.13.0-12-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.7-0ubuntu2
Architecture: amd64
CurrentDesktop: ubuntu:GNOME
Date: Mon Oct 9 06:57:17 2017
EcryptfsInUse: Yes
InstallationDate: Installed on 2016-07-02 (463 days ago)
InstallationMedia: Ubuntu 16.04 LTS "Xenial Xerus" - Release amd64 (20160420.1)
SourcePackage: accountsservice
UpgradeStatus: Upgraded to artful on 2017-06-04 (126 days ago)
Changed in accountsservice (Ubuntu): | |
assignee: | nobody → Gunnar Hjalmarsson (gunnarhj) |
importance: | Undecided → High |
status: | New → Confirmed |
no longer affects: | accountsservice (Ubuntu Artful) |
Changed in language-selector (Ubuntu): | |
assignee: | nobody → Gunnar Hjalmarsson (gunnarhj) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in language-selector (Ubuntu Artful): | |
importance: | Undecided → High |
status: | New → Triaged |
description: | updated |
Changed in language-selector (Ubuntu): | |
status: | In Progress → Fix Committed |
Changed in language-selector (Ubuntu Artful): | |
assignee: | nobody → Gunnar Hjalmarsson (gunnarhj) |
status: | Triaged → In Progress |
description: | updated |
Hi Olivier / Sebastien,
Olivier's conclusion when debugging bug #1662031 (comment #13), that the simple VARIABLE=value syntax is incorrect for ~/.pam_environment, surprised me.
My belief is that it is correct. PAM ignores syntactically incorrect lines, and simple VARIABLE=value statements are not ignored. One of the most used sources for user guidance is this wiki page:
https:/ /help.ubuntu. com/community/ EnvironmentVari ables#Session- wide_environmen t_variables
It tells us that the more complex syntax is required for variable expansion to work, but the entries written to ~/.pam_environment by accountsservice don't involve variable expansion.
Can it possibly be that messages like 'remove variable "LANG=fr_ FR.UTF- 8"', which were written when debugging, simply are informational messages which let you know the previous environment variable - set previously somehow, e.g. from /etc/default/locale - and which is replaced by a new one?
I admit, however, that I don't find support for my belief in the PAM man pages.