LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-27-2014, 03:13 PM   #1
dunric
Member
 
Registered: Jul 2004
Distribution: Void Linux, former Slackware
Posts: 498

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


Hello,

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
dunric
Member
 
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
Code:
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
59 
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
Code:
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
Code:
%s/lxc-generic-/lxc_generic_/g
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
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,904

Rep: Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025Reputation: 5025
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
rgouveia
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.
 
  


Reply

Tags
slackware, slackware current, xdm



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

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

All times are GMT -5. The time now is 01:19 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