← Back to team overview

dx-packages team mailing list archive

[Bug 1722151] Re: Incorrect syntax when writing to ~/.pam_environment

 

I installed the language-selector-{gnome,common} 0.180.1 and
accountsservice 0.6.42-0ubuntu3.1 packages from artful-proposed.

As regards language-selector I verified the test case in the bug
description.

As regards accountsservice, these steps show that it now works as
expected:

1.
$ cat ~/.pam_environment | grep LANGUAGE
LANGUAGE	DEFAULT=de_DE:sv:en

2.
Changing the language to "Swedish" from Settings -> Region & Language results in:

$ cat ~/.pam_environment | grep LANGUAGE
LANGUAGE	DEFAULT=sv:de_DE:en

i.e. the language priority list is maintained instead of replaced with
just "sv:en".

** Tags removed: verification-needed verification-needed-artful
** Tags added: verification-done verification-done-artful

-- 
You received this bug notification because you are a member of DX
Packages, which is subscribed to accountsservice in Ubuntu.
Matching subscriptions: dx-packages
https://bugs.launchpad.net/bugs/1722151

Title:
  Incorrect syntax when writing to ~/.pam_environment

Status in accountsservice package in Ubuntu:
  Fix Released
Status in language-selector package in Ubuntu:
  Fix Released
Status in accountsservice source package in Artful:
  Fix Committed
Status in language-selector source package in Artful:
  Fix Committed

Bug description:
  [Impact]

  When the syntax for the entries in ~/.pam_environment was changed, the
  GUI in language-selector-gnome for maintaining the language priority
  list was broken since language-selector-gnome reads from
  ~/.pam_environment. The language-selector upload to artful makes
  language-selector-gnome handle both the old and the new syntax
  correctly.

  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
  /language-tools/save-to-pam-env writes to ~/.pam_environment using an
  incorrect syntax: "VARIABLE=value" on each line. The expected syntax
  is "VARIABLE [DEFAULT=[value]] [OVERRIDE=[value]]" (man pam_env.conf).

  ProblemType: Bug
  DistroRelease: Ubuntu 17.10
  Package: accountsservice 0.6.42-0ubuntu2
  ProcVersionSignature: Ubuntu 4.13.0-12.13-generic 4.13.3
  Uname: Linux 4.13.0-12-generic x86_64
  NonfreeKernelModules: zfs zunicode zavl zcommon znvpair
  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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/accountsservice/+bug/1722151/+subscriptions


References