Bug 278952 - x11/lightdm
Summary: x11/lightdm
Status: Closed Works As Intended
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-desktop (Team)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-05-13 12:23 UTC by Jean-Philippe P.
Modified: 2024-05-13 16:46 UTC (History)
1 user (show)

See Also:
madpilot: maintainer-feedback+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jean-Philippe P. 2024-05-13 12:23:18 UTC
in Freebsd, adduser, when configuring users and hiting enter at full name, the full name is populated with "user &".
We can not see the name in the drop down menu. Other bsd program populate the & with loginname.
Comment 1 Jean-Philippe P. 2024-05-13 15:31:40 UTC
it is even worse with several user with no fullname, all get joined in one entry "User &"
Comment 2 Guido Falsi freebsd_committer freebsd_triage 2024-05-13 16:07:34 UTC
Hi,

Thanks for the report.

This is actually an issue with the upstream software. LightDM is not developed for FreeBSD, in fact it is developed by Canonical, makers of Ubuntu Linux.

Adding this would require development in the upstream software.
Even if the fix will most probably be coming from a FreeBSD developer, ports are not the place for original development. Custom patches can and are added, but that track should be taken only when it is impossible to get the required changes upstream.

Due to this you really should file a bug report/feature request upstream, so any patches addressing this can also be attached there.

If you have code to fix this issue please post it. Otherwise, someone will need to take the thing in his hands and send a patch upstream, which can be added to the port.

BTW, have you tested the software behaviour in Linux? it is quite probable it does the same there, if the issue also happens in Linux it is much more probable for the upstream to care.

(I have no idea how difficult this would be to implement, or if & in user names is a thing in Linux)
Comment 3 Guido Falsi freebsd_committer freebsd_triage 2024-05-13 16:30:11 UTC
BTW, finger is one of the programs that performs the "&" substitution and here is the relevant code:

https://github.com/freebsd/freebsd-src/blob/8b0682644e2da9c595d9249c9a0c8eb499421b5e/usr.bin/finger/util.c#L339

I guess something like that would need to be added to lightdm, looks like there is no standard function to get this done.
Comment 4 Jean-Philippe P. 2024-05-13 16:39:10 UTC
I have made a ticket on the lightdm github issue tracker
https://github.com/canonical/lightdm/issues/357
Comment 5 Mark Linimon freebsd_committer freebsd_triage 2024-05-13 16:46:29 UTC
^Triage: close since bug report has been filed against upstream.