LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-12-2016, 11:21 AM   #1
taiyebur
LQ Newbie
 
Registered: Jul 2016
Posts: 5

Rep: Reputation: Disabled
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?
 
Old 07-12-2016, 04:52 PM   #2
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,751

Rep: Reputation: Disabled
Have you considered using ~/.xsession executable? Maybe read the files in /etc/X11/xdm and add your script into Xsession file.
 
Old 07-12-2016, 07:17 PM   #3
taiyebur
LQ Newbie
 
Registered: Jul 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by elcore View Post
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.


Click image for larger version

Name:	Capture.PNG
Views:	392
Size:	11.2 KB
ID:	22427
 
Old 07-13-2016, 12:16 AM   #4
elcore
Senior Member
 
Registered: Sep 2014
Distribution: Slackware
Posts: 1,751

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 07-13-2016, 05:01 AM   #5
taiyebur
LQ Newbie
 
Registered: Jul 2016
Posts: 5

Original Poster
Rep: Reputation: Disabled
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.
 
Old 07-14-2016, 08:31 AM   #6
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,882

Rep: Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988Reputation: 4988
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'.

Last edited by GazL; 07-14-2016 at 08:34 AM.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Start X on boot under a user login on Ubuntu (no gdm, kdm or xdm) zagzagel Linux - Software 2 07-16-2010 01:24 PM
Solaris 10/08 SPARC - cant start X-window session czezz Solaris / OpenSolaris 3 11-20-2008 05:11 AM
Session menu in xdm login screen? Bowman Slackware 7 12-09-2004 07:58 PM
login with xdm without window manager for some users Saak Linux - Software 5 05-17-2004 05:32 PM
default window manager session with xdm gusgorman Linux - General 10 07-01-2002 10:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 11:03 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration