You are not logged in.
This is probalby a really noob question.
Recently I installed Arch Linux, with dwm as my standalone window manager. Most of the time I used "startx" to start dwm.
I decided to install lightdm and the lightdm-gtk-greeter and because this is my first linux install and starting dwm as a session directly in "lightdm.conf" didnt work,
I installed "xinit-xsession" from the AUR to simply let lightdm run my ".xinitrc" file.
When I try to log in now the screen goes black and then back to the login-screen again.
I looked at ".xsession-errors" and got this:
/etc/lightdm/Xsession: Zeile 64: /etc/X11/Xsession: Datei oder Verzeichnis nicht gefunden
(sorry for german error messages)
Is there a way to restore Xsesson or prevent lightdm from running it?
Or is there a better way entirely to do this whole startup thing?
Last edited by Tempest002 (2020-08-27 22:50:48)
Offline
Unless you actually need anything lightdm does, you can just startx from .bash_profile or .zprofile. See https://wiki.archlinux.org/index.php/Xinit.
Offline
Thank you for the reply.
Its a simple solution, but I would like to use lightdm if possible. And I would like to learn what the "Xsession" file actually does.
Offline
I doubt that the particular "error" is related to your situation.
a) write a dwm session file (though the AUR package contains one, I assume you're not using this?)
b) post your xinitrc
Online
Ok, I am certain that my .xinitrc file isnt the problem because startx works as expected.
I tried running lightdm with my .xinitrc file as a session : didnt work
I wrote a dwm.desktop fille in /usr/share/xsessions and set dwm in lightdm.conf : didnt work
And the logs and error-messages im getting dont seem to change, it must be something else.
The Problem is the same every time. I type my correct password, the screen goes black, and then I am back at the login screen.
Postet all of the importand files below, maybe you see something.
lightdm.log: http://ix.io/2voi
dwm.desktop: http://ix.io/2vok
lightdm.conf: http://ix.io/2vol
.xesession-errors: http://ix.io/2voo
.xinitrc: http://ix.io/2vos
Offline
Lightdm indeed tries to run /etc/lightdm/Xsession /etc/X11/Xsession and fails because /etc/X11/Xsession doesn't exist but is supposed to replace the running process (/etc/lightdm/Xsession) but I don't see why.
[+8.26s] DEBUG: Session pid=453: Running command /etc/lightdm/Xsession /etc/X11/Xsession
[+8.26s] DEBUG: Creating shared data directory /var/lib/lightdm-data/sebi
[+8.26s] DEBUG: Session pid=453: Logging to .xsession-errors
[+8.39s] DEBUG: Activating VT 7
[+8.39s] DEBUG: Activating login1 session 2
[+8.39s] DEBUG: Seat seat0 changes active session to
[+8.39s] DEBUG: Seat seat0 changes active session to 2
[+8.39s] DEBUG: Session 2 is already active
[+8.43s] DEBUG: Session pid=453: Exited with return value 127
Does it work w/o the autologin stuff?
Online
Good news: With autologin enabled it works.
I tried it with dwm.desktop as well as xinitrc.desktop and both work as an autologin-session.
A few of my bash scripts are broken now but surely I can fix that.
But I am still curious, why does lightdm run the sessions differently with autologin enabled?
Thank you for the help!
Offline
grep -ir xsession /usr/share/xsessions/
cat /usr/share/xsessions/xinitrc.desktop
Lightdm should™ run "/etc/lightdm/Xsession /usr/bin/xinitrcsession-helper" - maybe it defaults to /etc/X11/Xsession on a bad session service or maybe user-session needs to be an absolute path *shrug*
Online