Page MenuHomeFreeBSD

x11/xdm: Use $LOCALBASE/etc/xdm/Xservers as base for Xserver args
ClosedPublic

Authored by cy on Oct 5 2023, 9:24 PM.
Tags
None
Referenced Files
F153152593: D42097.id128432.diff
Sun, Apr 19, 12:13 PM
F153097051: D42097.id128331.diff
Sun, Apr 19, 3:12 AM
Unknown Object (File)
Sat, Apr 18, 6:37 PM
Unknown Object (File)
Sat, Apr 18, 7:42 AM
Unknown Object (File)
Thu, Apr 16, 6:37 PM
Unknown Object (File)
Tue, Apr 7, 2:09 AM
Unknown Object (File)
Sun, Apr 5, 12:57 AM
Unknown Object (File)
Sun, Mar 29, 9:59 PM
Subscribers
None

Details

Summary

Hard coding Xserver args forces people to invoke xdm through init
by placing an entry in /etc/ttys when Xserver args different from
those hardcoded in rc.d/xdm are desired. Instead glean arguments
from $LOCALBASE/etc/xdm/Xservers, defaulting to the hardcoded
entry if none are found for :0.

Test Plan

Tested and working here.

Diff Detail

Repository
R11 FreeBSD ports repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

cy requested review of this revision.Oct 5 2023, 9:24 PM
cy created this revision.
This revision is now accepted and ready to land.Oct 6 2023, 5:32 AM

The original patch didn't take into account that a user might change the DisplayManager.servers resource to point to different file from the default file. The DisplayManager.servers resource could also be set to a string (just like -servers sets the resource), meaning it may not be a file. xdm will assume it's a file if the string begins with a slash ("/"). We need to take this also into account.

Again, this has been tested and is currently running here.

This revision now requires review to proceed.Oct 9 2023, 4:52 AM
This revision is now accepted and ready to land.Oct 9 2023, 5:24 AM