LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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-23-2012, 08:06 AM   #1
GazL
Senior Member
 
Registered: May 2008
Posts: 3,447

Rep: Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979
14.0-BETA1 - XDM authorization key matches an existing client!xfce4-session


Found a bug with 14.0 BETA1: The xinitrc-xfce when started from xdm fails to login and .xsession-errors contains:
Code:
/usr/bin/startxfce4: X server already running on display :0
XDM authorization key matches an existing client!xfce4-session: Cannot open display: .
Type 'xfce4-session --help' for usage.

A quick google finds this unresolved upstream bug which seems to indicate that xfce4-session is failing to launch dbus/consolekit sessions correctly.
https://bugzilla.xfce.org/show_bug.cgi?id=8841

As a work around, I found that replacing the new (minimal) /etc/X11/xinit/xinitrc.xfce with a more "traditional" script along the lines of the following gets things working again.:
Code:
#!/bin/sh
#  xinitrc.xfce - modified to work around xfce4session bug
#                 https://bugzilla.xfce.org/show_bug.cgi?id=8841


########################################################################
##  Merge in defaults and keymaps                                     ##
########################################################################

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap


########################################################################
##  Start DBUS session bus                                            ##
########################################################################

if [ -z "$DBUS_SESSION_BUS_ADDRESS" ]; then
   eval `dbus-launch --sh-syntax --exit-with-session`
fi


########################################################################
##  Start xfce Desktop Environment                                    ##
########################################################################

if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
    exec ck-launch-session /usr/bin/startxfce4
else
    exec /usr/bin/startxfce4
fi


########################################################################
Gotta love ConsoleKit: an over-complicated solution to a problem no one had!


P.S, while were on the subject of launching X from xdm,
/etc/skel/.xsession ought to be removed from the etc package. It's an incomplete and non-functional .xsession file, that seems to contain a bit of gpg2 shell code but nothing to do with Xsessions. As luck would have it /etc/X11/xdm/Xsession checks for execute permissions before running ~/.xsession so it is just ignored and doesn't do any harm, but it ought to be cleaned-up.


Would have emailed Pat about these, but my ISP has mistakenly disabled my email address and it's going to take "up to 5 days" to get it back.

edit: nuts! How'd this end up in general. Please could a passing mod move it to slackware. thankyou.

Last edited by GazL; 07-23-2012 at 08:07 AM.
 
Old 07-23-2012, 12:03 PM   #2
GazL
Senior Member
 
Registered: May 2008
Posts: 3,447

Original Poster
Rep: Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979
Update:

USB flashdrives are failing to automount via thunar after doing the above. So whatever problem there are with the fluxbox and other minimal environments running thunar, it is also affecting starting xfce this way (not surprising since it's more or less exactly how the other environments have been done for years.

So, I've not managed to get a fully working xfce environment yet.
 
Old 07-23-2012, 12:17 PM   #3
volkerdi
Slackware Maintainer
 
Registered: Dec 2002
Location: Minnesota
Distribution: Slackware! :-)
Posts: 875

Rep: Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819Reputation: 1819
Probably nothing this simple, but I found here that on an upgraded system udisks2 doesn't kick in until after a reboot.
 
Old 07-23-2012, 01:02 PM   #4
sahko
Senior Member
 
Registered: Sep 2008
Distribution: Slackware
Posts: 1,041

Rep: Reputation: Disabled
Indeed, i got that error too while trying to figure out whats wrong with nm-applet. I can confirm XDM doesnt start XFCE here either.
 
Old 07-23-2012, 01:23 PM   #5
GazL
Senior Member
 
Registered: May 2008
Posts: 3,447

Original Poster
Rep: Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979Reputation: 979
Got there in the end. It seems you need to start dbus within the console-kit session.

This is working for me now.

Code:
#!/bin/sh
#  xinitrc.xfce - modified to work around xfce4session bug
#                 https://bugzilla.xfce.org/show_bug.cgi?id=8841


########################################################################
##  Merge in defaults and keymaps                                     ##
########################################################################

userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
sysmodmap=/etc/X11/xinit/.Xmodmap

[ -f $sysresources ] && /usr/bin/xrdb -merge $sysresources
[ -f $sysmodmap ] && /usr/bin/xmodmap $sysmodmap
[ -f $userresources ] && /usr/bin/xrdb -merge $userresources
[ -f $usermodmap ] && /usr/bin/xmodmap $usermodmap


########################################################################
##  Start xfce Desktop Environment                                    ##
########################################################################

if [ -z "$DESKTOP_SESSION" -a -x /usr/bin/ck-launch-session ]; then
    exec ck-launch-session dbus-launch /usr/bin/startxfce4
else
    exec dbus-launch /usr/bin/startxfce4
fi


########################################################################
 
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
X over SSH authorization, how to make the proxy key permanent for each session Mikoman Linux - Software 2 04-23-2012 01:48 AM
SDL "XDM authorization key matches an existing client!" malloc Slackware 8 10-13-2011 06:20 PM
disabling XDM-AUTHORIZATION-1 in xdm shpenat Linux - Desktop 0 03-18-2009 09:11 AM
xdm/gdm/kdm domain authorization daft Linux - Networking 0 05-22-2005 09:42 AM
XDM-AUTHORIZATION-1 key sigma957 Debian 0 02-01-2004 09:51 AM


All times are GMT -5. The time now is 05:38 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration