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.
Hang on, that was an error of mine, it's "User1000", not "User/1000":
$ python -c "import dbus; o=dbus. SystemBus( ).get_object( 'org.freedeskto p.Accounts' , '/org/freedeskt op/Accounts/ User1000' ); i=dbus.Interface(o, dbus_interface= 'org.freedeskto p.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.