urxvt uses pink instead of solarized until I run xrdb ~/.Xresources
Solution 1
Ok, I figured it out: You have to remove the -noccp
option in line 42 of /usr/sbin/lightdm-session
, which prevents xrdb
to use the preprocessor I needed.
Solution 2
If ~/.Xresources
are not processed with cpp
when you login, you may want to save your original source as another name and rebuild ~/.Xresources
every time you make changes.
I just wrote a tool to automate this process: https://github.com/dolmen/Xresources.edit/
Solution 3
Your ~/.Xresources
does not get read in automatically.
I suppose in Ubuntu (at least that's the case in debian) the resource file read in during the start of your X session is .Xdefaults
.
To not break anything that depends (perhaps) on ~/.Xresources
, just make a symbolic link:
ln -s .Xresources ~/.Xdefaults
Start a new X session and the pink in pink should be gone.
Related videos on Youtube
iGEL
Updated on September 18, 2022Comments
-
iGEL almost 2 years
Edit: I discovered, that this seems to be a bug in Ubuntu: https://bugs.launchpad.net/ubuntu/+source/unity/+bug/1163129 - Any idea how to fix this by myself?
I just want to switch to urxvt, but I have a strange problem with my
.Xresources
. When I log in and start urxvt, everything is pink in pink and I get these error messagesurxvt: unable to parse color 'S_base0', using pink instead. urxvt: unable to parse color 'S_base03', using pink instead. ...(repeated for all colors I defined)... urxvt: unable to parse color 'S_base03', using pink instead.
However, once I ran
xrdb ~/.Xresources
, all newly opened urxvt's are fine and beautifully solarized. WAT?My .Xresources: https://gist.github.com/iGEL/6880992 - I'm using Ubuntu 13.04 (64 bit), but installed the package
rxvt-unicode-256color
from Ubuntu 13.10 to get the current version of urxvt (9.18).Edit: Notice that the colors are defined in the same file they are used. Maybe urxvt (or whatever is reading the
.Xresources
) can't parse and use the variables in the same run? Looks however like an odd idea. -
mpy over 10 years@iGEL: That's a pity. I had exactly the same phenomenon (pink in pink), and the symbolic link fixed it. Unfortunately I don't have a Ubuntu machine to do further testing.
-
mpy over 10 years@iGEL: Perhaps you can check, if your
~/.xinitrc
contains a line similar totest -r $HOME/.Xdefaults && xrdb -I$HOME -merge $HOME/.Xdefaults
-
iGEL over 10 yearsThank you for your help, but after a little more googeling, I discovered that it seems to be a bug in Ubuntu :( bugs.launchpad.net/ubuntu/+source/unity/+bug/1163129 - Sorry for not doing it properly before.
-
Josh about 6 yearsI ran into a similar problem with gdm. In /etc/gdm/Xsession, removing the
-nocpp
flag from on thexrdb -merge $userresources
line fixed it.