My ~/.xinitrc file is seemingly being ignored. Has X changed fundamentally in recent years?

  • 1
    What exactly do u want to do? Open a terminal on booting up? – evolutionizer Aug 22 '15 at 20:40
  • assuming you are in a single user solution you could make your edits to the global xintrc file in /etc/X11/xinit/xinitrc. the downside to this is that it will run your command for every user (this may or not be an issue for you). – Steve Robillard Aug 22 '15 at 22:28
  • what command do you use to start X? – M Noit Aug 23 '15 at 11:22

I'm guessing you are logging in via the default GUI display manager, lightdm. Different display managers have different attitudes toward using start up files such as .profile and .xinit. Technically, they're not obliged to do either thing, since they aren't login shells, and you aren't calling startx or xinit. This is approach taken by lightdm.

However, it (or rather, X itself) will execute ~/.xprofile and ~/.xsession. The easiest thing to do is move your stuff into that. There are other solutions to this problem online if you search "lightdm xinitrc".

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.