"Language for menus and windows" is not saved if .profile is missing
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
accountsservice (Ubuntu) |
Fix Released
|
Medium
|
Gunnar Hjalmarsson | ||
Precise |
Fix Released
|
Undecided
|
Gunnar Hjalmarsson |
Bug Description
[SRU test case]
Currently, to test if HOME is available, accountsservice in precise tests for the existence of ~/.profile, and if ~/.profile isn't found, no changes of the language settings are made.
To reproduce the bug you can
1. rename your ~/.profile (temporarily)
2. try to change the user language
This will fail with the misplaced message "not access to HOME yet so language not saved".
The attached patch 0010-set-
[Original description]
I had problems with changing language from english (to danish). It's not being applied, even after re-login/reboot.
1) Open gnome-language-
2) Install wanted language (if not already installed, in my case Danish)
3) Drag the wanted language to top of list (above english)
4) Push close
5) Logout/login
6) Menus and windows are still english (e.g. gnome-panel, firefox menus).
7) Re-open gnome-language-
Even tried reboot under 5), still didn't work.
The problem can also be reproduced just by reopening gnome-language-
# Here's the root cause:
In step 3) when "slipping" the dragged language, following message occurs:
=======
Traceback (most recent call last):
File "/usr/lib/
res = f(*args, **kwargs)
File "/usr/lib/
self.
File "/usr/lib/
self.
File "/usr/lib/
iface.
File "/usr/lib/
return self._proxy_
File "/usr/lib/
**keywords)
File "/usr/lib/
message, timeout)
dbus.exceptions
=======
The last line " not access to HOME yet so language not saved" made me investigate conf files in my homedir. I noticed that ~/.profile did not exist (my system has been upgraded many times and home conf files have long history).
This fixed the problem:
$ echo "" > ~/.profile
No errors at all, configuration stored on reopen, and re-login applies language change to menus.
However, nothing seems to be written to .profile, neither before/after re-login! It's still empty!
If I remove ~/.profile the bug re-appears completely. I.e.
bug appears if and only if ~.profile is missing.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: language-
ProcVersionSign
Uname: Linux 3.2.0-26-generic i686
ApportVersion: 2.0.1-0ubuntu10
Architecture: i386
CheckboxSubmission: 7a947f7b03ad4cd
CheckboxSystem: daed2f3d6643b4a
Date: Wed Jun 27 23:22:50 2012
ExecutablePath: /usr/bin/
InterpreterPath: /usr/bin/python2.7
PackageArchitec
SourcePackage: language-selector
UpgradeStatus: Upgraded to precise on 2012-06-17 (10 days ago)
description: | updated |
Changed in accountsservice (Ubuntu Precise): | |
assignee: | nobody → Gunnar Hjalmarsson (gunnarhj) |
status: | New → In Progress |
description: | updated |
Yes, I can confirm the bug as well as the solution.
Please: Can someone who knows the package can look into it. With this information it should be easy to fix.