[Bug 1008344] Re: [Precise] Language selector won't allow me to install languages
Justin Meyer
jbmeyer at google.com
Wed Dec 12 21:40:17 UTC 2012
PolicyKit's checks are mooted by line 145 of /usr/lib/python2.7/dist-
packages/LanguageSelector/gtk/GtkLanguageSelector.py, which reads
simply:
145 self.is_admin = (os.getuid() == 0 or in_grp_sudo or
in_grp_admin)
Later, on line 192:
192 if self.is_admin:
193 self.setupInstallerTreeView()
194 self.updateLanguageView()
Thus the buttons are clickable iff the user launching the utility is in
the sudo or admin groups. A quick edit of line 145 to simply read
145 self.is_admin = True #(os.getuid() == 0 or in_grp_sudo or
in_grp_admin)
...immediately makes the buttons accessible and semi-functional: I can
e.g. select Install / Remove Languages, then click Japanese, then click
Apply Changes, and things proceed normally - I get a PolicyKit prompt,
give it my password, and get my Japanese support.
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to language-selector in Ubuntu.
https://bugs.launchpad.net/bugs/1008344
Title:
[Precise] Language selector won't allow me to install languages
Status in “language-selector” package in Ubuntu:
Triaged
Bug description:
In a new install of Ubuntu Precise, I cannot make any system-wide
changes in the language selector (such as installing languages or
clicking "Apply System-Wide"), only user-specific changes. All those
controls for system-wide changes are greyed out, although my user does
have sudo abilities and I would be able to enter the root password of
the machine.
The machine is freshly installed, but with customizations specific to
our site, e.g. ldap authentication for users. Specifically, my user is
an ldap user, not a local one, and there is a group in the ldap
directory which was granted sudo capability by adding it to
/etc/sudoers. My user is part of that group. sudo on the command line
and gksudo work fine.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: language-selector-gnome 0.79
ProcVersionSignature: Ubuntu 3.2.0-24.39-generic 3.2.16
Uname: Linux 3.2.0-24-generic x86_64
ApportVersion: 2.0.1-0ubuntu8
Architecture: amd64
Date: Mon Jun 4 08:20:04 2012
PackageArchitecture: all
ProcEnviron:
LANGUAGE=en_US:
TERM=screen-256color
PATH=(custom, no user)
LANG=en_US.UTF-8
SHELL=/bin/bash
SourcePackage: language-selector
UpgradeStatus: No upgrade log present (probably fresh install)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/language-selector/+bug/1008344/+subscriptions
More information about the foundations-bugs
mailing list