language-selector-gnome modifies ~/.profile
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
language-selector (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi,
I just found that changing the language settings through gnome-control-
This is an absolute NO GO. Never ever automatically modify ~/.profile.
Plenty of reasons. One reason is that it can make it impossible to login if something does not work as expected. Second is that it makes it difficult/
If you can't do it in any proper way inside the gnome environment, write it into a separate file and use a ". file" in .profile.
But never ever try to fiddle around or overwrite a user-written .profile.
BTW, the script fails if the .profile contains several export commands e.g. in a case instruction. This is *REALLY BAD*.
(which, btw., proves that moving the language setting from the Desktop Manager into the Desktop was definitely a bad idea. This is worse than just poor design. This is really idiotic.)
ProblemType: Bug
DistroRelease: Ubuntu 11.10
Package: language-
ProcVersionSign
Uname: Linux 3.0.0-13-generic x86_64
ApportVersion: 1.23-0ubuntu4
Architecture: amd64
Date: Tue Nov 1 23:45:09 2011
EcryptfsInUse: Yes
InstallationMedia: Ubuntu 10.04 LTS "Lucid Lynx" - Release amd64 (20100427.1)
PackageArchitec
ProcEnviron:
PATH=(custom, user)
LANG=en_US.UTF-8
SHELL=/bin/tcsh
SourcePackage: language-selector
UpgradeStatus: Upgraded to oneiric on 2011-10-29 (3 days ago)
btw., there's lots of better files for doing that. Files in /etc/X11/Xsession.d read things like ~/.gnomerc or ~/.xsessionrc which would be much better (or even use a specific file for language settings), but under all circumstances keep fingers from ~/.profile.
Even worse, this affects the settings if someone is logging in through ssh or with other desktops.