Open holisticode opened 3 months ago
I went down the rabbit hole and discovered that xsetup.sh does not run Xsession, only everything in the subfolders of /etc/X11/Xsession.d.
It only seems to source it after trying to merge the resources, perhaps that's the sole reason for this issue.
Finally I moved the whole section from the xsetup.sh file, which actually contains the xrdb merge call, above the "Load Xsession scripts" section.
Did you try removing the custom 10-custom-xsession
file afterwards to see if it works? If it doesn't, perhaps the other files (namely OPTIONFILE
, USERXSESSIONRC
and ALTUSERXSESSION
) need to be sourced as well, given that they're just set and forgotten later right now.
My guess here is that this condition:
if [ -f "$USERXSESSION" ]; then
. "$USERXSESSION"
fi
needs to be moved above, right before the script deals with the Xresources
files.
I have an old laptop which I wanted to install something lightweight on, but no rolling release (because I don't use it much).
I settled for minimal
debian
, theni3
on top. As a display manager I choosely
. As terminal I selectedurxvt
.I styled
`urxvt
in the$HOME/.Xresources
file, but on login, it was never loaded. But when I ranxrdb merge ~/.Xresources
it was being picked. Using a.xinitrc
also was not working.After manually debugging by running
/etc/ly/xsetup.sh
I could see that the script was failing withhas_option
from theXSession
scripts was not being found. I went down the rabbit hole and discovered thatxsetup.sh
does not runXsession
, only everything in the subfolders of/etc/X11/Xsession.d
. So I made a custom10-custom-xsession
file in that dir with thehas_option
function. This improved, but still my settings were not loaded.Finally I moved the whole section
from the
xsetup.sh
file, which actually contains thexrdb merge
call, above the "Load Xsession scripts" section.This now worked. However, it feels pretty much a hack. Can I do this differently?