Comment 13 for bug 827176

Revision history for this message
Martin Pitt (pitti) wrote :

Hang on, that was an error of mine, it's "User1000", not "User/1000":

$ python -c "import dbus; o=dbus.SystemBus().get_object('org.freedesktop.Accounts', '/org/freedesktop/Accounts/User1000'); i=dbus.Interface(o, dbus_interface='org.freedesktop.DBus.Properties'); print i.Get('org.freedesktop.Accounts.User', 'Language')"
de

The real reason is that this crashes as root, when os.getuid() == 0, and Accounts/User0 does not exist.