Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
add comment

2 Answers

up vote 13 down vote accepted

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

[Desktop Entry]
Name=Xsession
Exec=/etc/X11/Xsession

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
2  
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
add comment

To use olvwm:

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

2) Create this session :

/usr/share/xsessions/olvwm.desktop
[Desktop Entry]
Name=Open Look
Exec=olvwm
Type=Application
share|improve this answer
add comment

Your Answer

 
discard

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.