LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   XDM login window loops trying to start i3 session in Slackware64 14.2 (https://www.linuxquestions.org/questions/slackware-14/xdm-login-window-loops-trying-to-start-i3-session-in-slackware64-14-2-a-4175584420/)

taiyebur 07-12-2016 11:21 AM

XDM login window loops trying to start i3 session in Slackware64 14.2
 
Hi,

I have installed slackware64 14.2 with i3wm. I am having trouble logging into i3 using xdm. XDM login window always loops back to login window. In .xsession-errors, this message is found.
Code:

xdm authorization key matches an existing client:i3 cannot open display
I can start i3 session using "startx". I worked around this problem using info from the following link - https://lists.freebsd.org/pipermail/...er/080775.html

I want to do the same without modifying XDM configuration. Is there a way?

elcore 07-12-2016 04:52 PM

Have you considered using ~/.xsession executable? Maybe read the files in /etc/X11/xdm and add your script into Xsession file.

taiyebur 07-12-2016 07:17 PM

1 Attachment(s)
Quote:

Originally Posted by elcore (Post 5574964)
Have you considered using ~/.xsession executable? Maybe read the files in /etc/X11/xdm and add your script into Xsession file.

~/.xsession is already executable. Here is whats in it.


Attachment 22427

elcore 07-13-2016 12:16 AM

Well I don't use it, but I've checked portage for the list of files and there seems to be a session file /etc/X11/Sessions/i3wm
Maybe locate this file and see how it's starting the session, or point xinitrc symlink to that file, other than that I have no idea.
I've used startfluxbox in ~/.xsession and that's working fine.

taiyebur 07-13-2016 05:01 AM

The scripts /etc/X11/xinit/xinitrc.i3, /etc/X11/xinit/xinitrc, ~/.xinitrc, ~/.xsession are all identical, yet it fails to start i3 session. So I replaced all the code in .xsession with "exec startx" and it started working. The man page of startx said it reads the .xinitrc file from the home directory for startup scripts, which is great that I am not missing anything of the default script generated by "xwmconfig", but .xsession should have worked. Other out of the box DM/WM's don't have this problem. I also faced it after installing mate desktop.

GazL 07-14-2016 08:31 AM

Some window managers seem not to like being started via dbus-launch and will result in the error you're seeing. I think it has something to do with whether or not they fork()+exec() themselves and whether they still have the same PID that dbus-launch used when they XOpenDisplay(). The XDM message you posted is typically what you see in this case. If you take a look at /etc/X11/xinit/xinitrc.blackbox and the /usr/bin/startblackbox that it invokes you'll see an approach to starting dbus and the window manager which I've found to be reliable and should work for you. I use something similar for starting 'dwm'.


All times are GMT -5. The time now is 02:47 AM.