You are not logged in.
Hi all,
on my new 4k display laptop, I have a customized .Xresources to adjust the fonts for xterm and some other applications.
The .Xresources are loaded on startup, however it seems that they are loaded after the session is restored.
So all applications like xterm etc that are restored from the session on startup, have the default settings, and the ones
that I manually start later on, have the modified settings from .Xresources
How can I force the system to load the .Xresources before the session is restored?
Thanks in advance
Vasilis
Offline
How are you starting Xfce? The startxfce4 script loads ~/.Xresources before running xfce4-session (which would manage the restore from saved sessions) so Xresources should already be merged by that point.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Its a brand new xubuntu installation, after login with lightdm it enters directly in the graphics environment
Last edited by vlachoudis (2021-08-26 17:31:23)
Offline
My understanding is that lightdm loads the ~/.Xresources file on login. See the /var/log/lightdm/lightdm.log file:
[+5.88s] DEBUG: Session pid=661: Running command /etc/lightdm/Xsession startxfce4
If you look at /etc/lightdm/Xsession, you can see how it loads the .Xresources file before starting startxfce4 (which starts xfce4-session).
Since you are seeing something different, it may be best to create a bug report against xfce4-session to see if a developer can provide some insight. I've had a look at the current open issues, but none of them seem to pertain to this.
Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki | Community | Contribute ---
Offline
Thank you @ToZ
indeed the lightdm.log has a similar line
[+9.73s] DEBUG: Session pid=1124: Running command /usr/sbin/lightdm-session startxfce4
and the lightdm-session normally should load the $HOME/.Xresources
# Load resources
if type xrdb >/dev/null 2>&1; then
xresourcedir="/etc/X11/Xresources"
if [ -d "$xresourcedir" ]; then
for file in $xresourcedir/*; do
echo "Loading resource: $file"
xrdb -merge "$file"
done
fi
xresourcefile="$HOME/.Xresources"
if [ -f "$xresourcefile" ]; then
echo "Loading resource: $xresourcefile"
xrdb -merge "$xresourcefile"
fi
fi
but I still get the problem.
I will post the bug on xfce4-session as you suggested
Last edited by vlachoudis (2021-08-27 18:05:11)
Offline
[ Generated in 0.014 seconds, 9 queries executed - Memory usage: 535.02 KiB (Peak: 535.87 KiB) ]