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


  Search this Thread
Old 07-27-2014, 03:13 PM   #1
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Rep: Reputation: 100Reputation: 100
xdm login issues in Slackware current


just asking if somebody else experiences similar issue with xdm in recent Slackware current.
After a big update of X from 15th of July I can no longer log-in using xdm . Debugging info confirms authentication was successful however before Xsession file gets processed display on :0 prematurely dies.
Other login managers like slim or direct xinit from a console bring me into X session without any quirks.

Take care

Last edited by dunric; 07-27-2014 at 03:18 PM.
Old 07-29-2014, 08:06 AM   #2
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

Original Poster
Rep: Reputation: 100Reputation: 100
I've finally found the source of the issue and it was a bit tricky.
Seemingly unrelated lxc package recently installed in my system includes definitions for bash-completion. These definitions with others are indirectly sourced with /etc/profile from xdm's Xsession script
55 # Since xdm doesn't run a bash -login shell (or any other login shell)
56 # we should source these files to set up the user's environment.
57 profile=/etc/profile
58 userprofile=~/.profile
60 if [ -r $profile ]; then
61         source $profile 1> /dev/null 2> /dev/null
63 fi
Because possible error messages are silenced on line 61, and because way Xsession gets executed
19         exec > "$errfile" 2>&1
the error won't appear in any log or console output and silently breaks further processing of Xsession script.

Lxc's bash-completion file /etc/bash_completion.d/lxc does contain function names with invalid hyphen character. Simply replacing them with underscore solves the issue
does the job from Vim.

It's a question for Patrick and possibly Robby (rworkman) if the session launcher can be rewritten in a more robust way.

Last edited by dunric; 07-29-2014 at 11:34 AM. Reason: typo
1 members found this post helpful.
Old 07-29-2014, 09:27 AM   #3
Senior Member
Registered: May 2008
Posts: 4,658
Blog Entries: 12

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Yep, the /etc/X11/xdm/Xsession file is particularly ugly, in a number of ways. IMO a lot of what's in it should be stripped out.
Old 09-21-2014, 04:34 AM   #4
LQ Newbie
Registered: Apr 2009
Posts: 3

Rep: Reputation: Disabled
This bug still exists in current as I've encountered it today.
Following dunric solution I can now login from xdm.


slackware, slackware current, xdm

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] Issues installing/upgrading to Slackware Current kfxjvghgm Slackware - Installation 11 03-21-2011 12:40 AM
Two Slackware-current issues, help please? jamesf Slackware 9 05-08-2010 07:24 PM
Slackware-Current: Qt upgrade issues Neruocomp Slackware 1 04-03-2005 12:24 PM
Changing XDM's login screen in Slackware 9.1 ? diam0nd Linux - General 1 03-22-2004 12:07 PM
XDM opens XDM after login jpbarto Linux - Software 1 01-26-2004 10:23 PM > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 01:27 PM.

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