This drives me crazy... Maybe someone has an idea. I could not find something concerning exactly this.
I'm running ubuntu 20.04 (studio version) and have a .Xresources to set some nord theme based colors for my beloved xterm.
Looks like this:
XTerm*termName: xterm-256color
#define nord0 #2E3440
...
*.color0: nord1
...
When I load (not merge yet) this with xrdb and start xterm, it all looks fine.
However after login, it does not...
Interrestingly, the resources are all here:
$ xrdb -query
*.background: nord0
*.color0: nord1
...
*.cursorColor: nord4
*.foreground: nord4
*customization: -color
XTerm*termName: xterm-256color
Xft.dpi: 96
Xft.antialias: 1
Xft.hinting: 1
Xft.hintstyle: hintslight
Xft.rgba: rgb
Xcursor.size: 24
Xcursor.theme: Yaru
The suspicious thing is the termNAme property which is located after the colors. Not sure if there is some ordering?
When I load it again, xterm has the wanted colors again.
But, the query result is a bit different:
$ xrdb -query
XTerm*termName: xterm-256color
*.background: #2E3440
*.foreground: #D8DEE9
*.cursorColor: #D8DEE9
*.color0: #3B4252
*.color1: #BF616A
...
Now the termNAme property is at the beginning, as it is in the .Xresources file, as well as the other color properties.
So why is this different after login?
My only conlcusion is, that something influences the order or does whatever in the login process.
I could not yet figure out what really happens here. I'm sure I overlooked something that is too close ;)
Does anyone know something about this behaviour?
Thank you very much so far!