Quando executo gnome-language-selector
como meu usuário normal, recebo a seguinte saída ao arrastar e soltar um novo idioma acima do inglês padrão.
/usr/lib/python2.7/dist-packages/LanguageSelector/LocaleInfo.py:124: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
if lang_name == self._lang[lang]:
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Ikke tilgang
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Ikke tilgang
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Ikke tilgang
debconf: DbDriver "passwords" warning: could not open /var/cache/debconf/passwords.dat: Ikke tilgang
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 62, in wrapper
res = f(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 1047, in on_treeview_locales_drag_end
self.writeUserLanguage(envLanguage)
File "/usr/lib/python2.7/dist-packages/LanguageSelector/gtk/GtkLanguageSelector.py", line 800, in writeUserLanguage
self.writeUserLanguageSetting(userLanguage=languageString)
File "/usr/lib/python2.7/dist-packages/LanguageSelector/LanguageSelector.py", line 83, in writeUserLanguageSetting
iface.SetLanguage(userLanguage)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 70, in __call__
return self._proxy_method(*args, **keywords)
File "/usr/lib/python2.7/dist-packages/dbus/proxies.py", line 145, in __call__
**keywords)
File "/usr/lib/python2.7/dist-packages/dbus/connection.py", line 651, in call_blocking
message, timeout)
dbus.exceptions.DBusException: org.freedesktop.Accounts.Error.Failed: not access to HOME yet so language not saved
(Ikke tilgang -> not allowed)
Eu disse, ok, isso parece um problema de permissão. Então, eu executo novamente como root e tenho o seguinte erro:
$ sudo gnome-language-selector
/usr/lib/python2.7/dist-packages/LanguageSelector/LocaleInfo.py:124: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpreting them as being unequal
if lang_name == self._lang[lang]:
/usr/lib/python2.7/dist-packages/LanguageSelector/LanguageSelector.py:77: UserWarning: No language saved for user 'root'.
warnings.warn("No language saved for user '%s'." % os.getenv('USER'))
Alguém tem alguma idéia do que pode estar causando isso? Ou o que eu poderia fazer para depurar / corrigir esse problema?