Comment 18 for bug 1290785

Revision history for this message
Robert Euhus (euhus-liste1) wrote :

Thanks to the hint from Robert, I finally found a solution for my user to be listed again:

There actually seems to be a method for setting the account type in the interface of org.freedesktop.Accounts.User, namely 'SetAccountType(in i accountType);' but I could not find a list of valid values for accountType. So I just uncached and then (re-)cached the user:

gdbus call --system --dest org.freedesktop.Accounts --object-path /org/freedesktop/Accounts --method org.freedesktop.Accounts.UncacheUser euhus
()
gdbus call --system --dest org.freedesktop.Accounts --object-path /org/freedesktop/Accounts --method org.freedesktop.Accounts.CacheUser euhus
(objectpath '/org/freedesktop/Accounts/User101125',)

Now the 'SystemAccount' property is set to false and the user is shown in the login window.

But I still have no idea, why this account was ever marked as system account.

What stil remains to be done is release a fix for the currently stable (and even LTS-) release.

P.S.: to find out about the available methods etc. I used:
gdbus introspect --system --dest org.freedesktop.Accounts --object-path /org/freedesktop/Accounts --recurse | less