Customized values from /etc/login.conf.d/${class} all work fine in tty, but in X started via xenodm:
- I do get system limits set;
- I don't get
PATH and env variables.
In X environment when I do in a terminal as root: su -c theuser ("theuser" being my custom login class), I do get PATH set properly but not env variables.
The problem is being observed on 2 machines: amd64 and i386, both OpenBSD 7.1, the former has got quite a few customizations so I might have broken something myself, the latter has undergone only several tweaks.
Tried my customizations in both locations: /etc/login.conf.d/${class} & /etc/login.conf - same result.
Switched back chsh -s /bin/ksh <username> as I thought my fish shell might interfere with PATH etc. (I did some tinkering, so it did interfere) - nope, in ksh I get PATH=/bin:/usr/bin:/sbin:/usr/sbin:/usr/X11R6/bin:/usr/local/bin:/usr/local/sbin without my additions and no custom env vars from login.conf.
Tried not only re-login, but also reboot - same.
My custom pretty /etc/login.conf.d/theuser:
theuser| the user of the machine : \
:setenv=,,,,,,,,,,,,,,,,,,,,,,,,,,,,\
,,,,RAKUBREW_HOME=/opt/raku/rakubrew/,\
,,,,PERLBREW_ROOT=/opt/p5/perlbrew/,,,\
,,,,PERLBREW_HOME=/opt/p5/.perlbrew/: \
:path= \
/opt \
/opt/b1n \
/opt/b1n.d \
/opt/bin \
/opt/bin.d \
/usr/bin \
/bin \
/usr/sbin \
/sbin \
/usr/X11R6/bin \
/usr/local/bin \
/usr/local/sbin \
/usr/games: \
:datasize-max=12288M: \
:datasize-cur=4096M: \
:maxproc-max=1536: \
:maxproc-cur=1024: \
:openfiles-max=8192: \
:openfiles-cur=4096: \
:stacksize-cur=32M: \
:tc=staff:
I also tried original formatting fearing my pretty one was not completely syntactically valid, no better:
theuser:\
:setenv=RAKUBREW_HOME=/opt/raku/rakubrew/,PERLBREW_ROOT=/opt/p5/perlbrew/,PERLBREW_HOME=/opt/p5/.perlbrew/:\
:path=/opt /opt/b1n /opt/b1n.d /opt/bin /opt/bin.d /usr/bin /bin /usr/sbin /sbin /usr/X11R6/bin /usr/local/bin /usr/local/sbin /usr/games:\
:datasize-max=12288M:\
:datasize-cur=4096M:\
:maxproc-max=1536:\
:maxproc-cur=1024:\
:openfiles-max=8192:\
:openfiles-cur=4096:\
:stacksize-cur=32M:\
:tc=staff: