LightDM returns immediately with /etc/X11/Xsession

-1

I have an user defined Xsession in ~/.xinitrc. Started from console via startx everything works fine.

Now this session should be started by LightDM. For that I created /usr/share/xsessions/xsession.desktop:

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

But if I select "Xsession" as session in LightDM and log in LightDM returns immediately to login screen without displaying my user defined Xsession. What have I forgot?

Chickenmarkus

Posted 2015-10-23T15:35:52.247

Reputation: 145

Xsession in /usr/hare/xsessions points to a file which does not start a desktop. If you look at the other 'desktop` files in the same directory you will see that they point to scripts which do start the desktop environment. – MariusMatutiae – 2015-10-23T20:33:31.460

Xsession itself does not but it includes files from home directory which do. – Chickenmarkus – 2015-10-24T09:27:22.713

Answers

-1

Against common literature Xsession does not load ~/.xinitrc. Instead it uses ~/.xsession. Copy or link the files each other.

Chickenmarkus

Posted 2015-10-23T15:35:52.247

Reputation: 145