new login screen does show username (phablet), not GECOS data

Bug #1627301 reported by Oliver Grawert
26
This bug affects 5 people
Affects Status Importance Assigned to Milestone
Canonical System Image
Incomplete
Undecided
Unassigned

Bug Description

with todays rc-proposed image i see a new login UI has landed. sadly this shows the user name (phablet). instead of the GECOS data that i did put in during first setup of the phone:

phablet@ubuntu-phablet:~$ cat /var/lib/extrausers/passwd
phablet:x:32011:32011:Oliver Grawert:/home/phablet:/bin/bash
phablet@ubuntu-phablet:~$

please make the UI use the GECOS data instead

Revision history for this message
Pat McGowan (pat-mcgowan) wrote :

this will show the name entered during OOBE, there is an open bug to allow it to be changed after that.

Changed in canonical-devices-system-image:
status: New → Incomplete
Revision history for this message
Oliver Grawert (ogra) wrote :

the GECOS data i cat'ed abive was actually created by OOBE when i set this device up for the first time. any reason why we can not use this (since it is also pretty much standard in all our other installs to use this data) but require the user to re-run OOBE to potentially use some non-standard place to store this data ? i think there should at least be a fallback to GECOS instead of just showing the hardcoded username.

Revision history for this message
Michael Terry (mterry) wrote :

Interesting. It's supposed to use GECOS. And it does for me... Something must be going wrong in your case.

Revision history for this message
Michael Terry (mterry) wrote :

It does use the username if it thinks GECOS is empty.

And actually, re-looking at the code, we don't pull directly from GECOS. We pull from AccountsService's RealName property.

So maybe on your machine, you installed during a period where the OOBE wasn't writing to AccountsServices' RealName?

What is the output of the following?

gdbus call --system --dest org.freedesktop.Accounts --object-path /org/freedesktop/Accounts/User32011 --method org.freedesktop.DBus.Properties.Get org.freedesktop.Accounts.User RealName

Revision history for this message
Oliver Grawert (ogra) wrote :

it is a Meizu MX5pro i bought from the meizu store .. nothing fancy apart from switching to rc-proposed using system-image-cli after about a month of using the device ... :)

phablet@ubuntu-phablet:~$ gdbus call --system --dest org.freedesktop.Accounts --object-path /org/freedesktop/Accounts/User32011 --method org.freedesktop.DBus.Properties.Get org.freedesktop.Accounts.User RealName
(<'Oliver Grawert'>,)
phablet@ubuntu-phablet:~$

Revision history for this message
Michael Terry (mterry) wrote :

Dang, a real problem then. :-/

I don't know how to reproduce though. I can look over the code again, but might be hard to fix unless I can repro.

Revision history for this message
Oliver Grawert (ogra) wrote :

well, if you want me to capture any logs i'll happily provide them ...

Revision history for this message
Oliver Grawert (ogra) wrote :

hmpf, so after todays upgrade and reboot i see the right name ... i'll leave this bug in incomplete state and change status in case it shows up again (perhaps a race at boot with the account service coming up to late here) ...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.