Load .Xresources when using GDM in Arch Linux

By Andreas Schickedanz Oct 16, 2015

A few days ago I faced some issues with lightdm after upgrading my system. A quick fix was to switch to GDM. However, after switching to GDM my .Xresources wasn’t load at boot. A quick look into /etc/gdm and I found the Xsession configuration file, which included the following code:

if [ -f "$userresources" ]; then
  xrdb -nocpp -merge "$userresources"

xrdb Manual: -nocpp This option indicates that xrdb should not run the input file through a preprocessor before loading it into properties.

This means that my .Xresources configuration was loaded, but the includes were not executed because no preprocessor was used. So the GDM maintainers hoped to improve performance by using the -nocpp flag. So to fix this issue I just had to remove the flag and my XTerm styles were loaded.

Hope this will help you. Until next time: Stay geeky!

is a Computer Science MSc. interested in hardware hacking, embedded Linux, compilers, etc.