Closed benniekiss closed 11 months ago
Good idea, I will have a try with the rust-users
crate and see what I can do.
Created an issue on uzers-rs
asking them to consider addind the GECOS field to what the crate returns for a user. This seems to work properly, but we would need this field to maintain feature parity with the /etc/passwd
method.
My pull requests were accepted upstream, so I prepared a change in tuigreet
to use this. Waiting for a new release to test and merge this.
wow! that's wonderful to hear. I've actually stopped using a linux desktop for sometime, but I've been planning to reinstall, so I'll be sure to test this out soon! Thank you
Enhancement/Suggestion
Currently, the user-menu is sourced by directly reading /etc/passwd > https://github.com/apognu/tuigreet/blob/599d8d5d3657e6c25b3877f84a09979a79256600/src/info.rs#L91
This method gets most users, but it leaves out other user databases.
Using
getent passwd
,userdbctl users
, or another method would capture many more user databases.My use case is that I am using systemd-homed, so my users do not appear in /etc/passwd, and they do not show up in the greeter user-menu