Comment 6 for bug 1008344

Revision history for this message
Justin Meyer (jbmeyer) wrote : Re: [Precise] Language selector won't allow me to install languages

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.