Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I use

  • Debian Wheezy/Sid with XDM
  • urxvt as terminal as well as i3 as window manager
  • ~/.xsession and /.Xresources as session and resources file, respectively.

Last night I accidentally used up all my battery, so my notebook shut down. Since then, whenever I try to login with xdm (as launched by startup), the session crashes and loops back to the login screen as described here.

However, if I start XDM manually by

sudo xdm -session ~/.xsession

I can log in normally without the session crashing. Judging from the terminal layout I get, ~/.Xresources isn't loaded and adding -resoucres ~/.Xresources to the line starting XDM doesn't help either.

Now, what I want is XDM to behave as before on startup, that is not to loop back to login screen after logging in, and my terminal to look as before. I believe that means I have to tell XDM to use ~/.Xresources as well as ~/.xsession by default.

I also tried to launch XDM as

sudo xdm -config .xdm-config

where ~/.xdm-config is a config file I copied from /etc/X11/xdm/xdm-config in which I changed the values of the lines

  • DisplayManager*resources to /home/*myname*/.Xresources and
  • DisplayManager*session to /home/*myname*/.xsession.

As before (manually specifying) the correct session file was used, but the terminal layout remained wrong, so the correct resources file probably wasn't used.

What can I do?

share|improve this question
    
By the way, I copied .Xresources to .Xdefaults, so that my terminal now looks like before, but this solution isn't as "clean" as I want it to be. –  k.stm Oct 4 '12 at 15:01
    
Your question is on topic and absolutely fine to stay here. If it doesn't receive enough attention, you could place a bounty on it or migrate it to Unix & Linux, as you wish. If the latter is what you want, flag it for moderator attention to have it migrated. –  slhck Oct 4 '12 at 18:53

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.