Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

If I unterstand it correctly, LightDM has replaced GDM per default. I wonder if it's possible to make it run the things I put in my .xinitrc file ... what I need is an option below "Unity" and "Unity 2D" which says "Run a user-defined session".

Is that possible? Should be the easiest thing, but I did not get a clue so far. I export and define and run a lot of things in this file, so it's pretty important for me to have control over that.

What I do NOT want is a custom session in /usr/some/where, I only want it to run the stuff from each user's xinitrc (or similar).

share|improve this question
up vote 17 down vote accepted

Create a new file /usr/share/xsessions/custom.desktop with:

[Desktop Entry]

You should now have a new session option during login, Xsession will load the user's ~/.xinitrc.

share|improve this answer
That did the trick, thank you! – Philipp Nov 8 '11 at 18:12
Ubuntu only considers ~/.xsession or maybe ~/.xsessionrc and ~/.Xsession now (12.04) – guigouz Sep 20 '12 at 23:14
Does one need to restart X, or simply logout, for this to take effect? – Tshepang Nov 23 '13 at 15:46

To use olvwm:

1) Type sudo apt-get install olvwm in a console

2) Create this session :

[Desktop Entry]
Name=Open Look
share|improve this answer

Your Answer


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

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