maintainer-feedback requested: [Bug 266532] x11/lightdm: Login sessions do not respect login.conf

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 21 Sep 2022 12:01:04 UTC
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-desktop (Team)
<desktop@FreeBSD.org> for maintainer-feedback:
Bug 266532: x11/lightdm: Login sessions do not respect login.conf
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266532



--- Description ---
I have created a ~/.login.conf to set LANG but when I login via lightdm it has
no effect (works on SSH though).

I think this could be fixed by patching lightdm to add a call to
setusercontext(), ie graft the code from xdm:
https://github.com/freedesktop/xorg-xdm/blob/master/xdm/session.c#L669

into session-child.c around line 540:
https://github.com/canonical/lightdm/blob/653809c387c0a4e4d96f7999db3106d89970d
4c7/src/session-child.c#L540

I plan on trying it soon but would appreciate some feedback since it's security
related.