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
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1008344

Title:
  [Precise] Language selector won't allow me to install languages

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/language-selector/+bug/1008344/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to