Set full_name_opt to None when GECOS data is empty
This commit is contained in:
parent
4ddb320dae
commit
37a96b4b30
3 changed files with 4 additions and 2 deletions
|
|
@ -109,6 +109,7 @@ impl GreeterProxy {
|
|||
full_name_opt: user
|
||||
.gecos
|
||||
.as_ref()
|
||||
.filter(|s| !s.is_empty())
|
||||
.map(|gecos| gecos.split(',').next().unwrap_or_default().to_string()),
|
||||
icon_opt,
|
||||
theme_opt: None,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue