From nobody@FreeBSD.org  Wed Oct  2 03:52:05 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTP id E584C825
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  2 Oct 2013 03:52:05 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id D3B7824D0
	for <freebsd-gnats-submit@FreeBSD.org>; Wed,  2 Oct 2013 03:52:05 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r923q5gS032315
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 2 Oct 2013 03:52:05 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r923q5fj032220;
	Wed, 2 Oct 2013 03:52:05 GMT
	(envelope-from nobody)
Message-Id: <201310020352.r923q5fj032220@oldred.freebsd.org>
Date: Wed, 2 Oct 2013 03:52:05 GMT
From: Jason Bacon <jwbacon@tds.net>
To: freebsd-gnats-submit@FreeBSD.org
Subject: xfce4 fails to start from xdm
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         182561
>Category:       ports
>Synopsis:       x11-wm/xfce4 fails to start from xdm
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-xfce
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Oct 02 04:00:00 UTC 2013
>Closed-Date:    
>Last-Modified:  Wed Oct  2 21:10:00 UTC 2013
>Originator:     Jason Bacon
>Release:        9.2-RELEASE
>Organization:
Acadix Consulting, LLC
>Environment:
FreeBSD oyster.jbacon.dyndns.org 9.2-RELEASE FreeBSD 9.2-RELEASE #0 r255898: Thu Sep 26 22:50:31 UTC 2013     root@bake.isc.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64

>Description:

When using xdm-1.1.11 for login with xfce-4.10_5, the first session starts successfully, but sessions after that fail to start and leave the following message in .xsession-errors:

    XDM authorization key matches an existing client!xfce4-session: Cannot open display: .

This problem has popped up in recent and past versions of XFCE.  I found a workaround/solution here:

    http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=486606

It involves adding the following to /usr/local/lib/X11/xdm/xdm-config:

    DisplayManager*authName:        MIT-MAGIC-COOKIE-1

This fix solved the issue on both installations.

Removing the user's .Xauthority file prior to login also works around it in some cases.  This worked consistently on my laptop, but not on a VirtualBox guest with nearly identical configuration.
>How-To-Repeat:
Install and enable xdm-1.1.11 and xfce 4.10_5.  ( sysutils/desktop-installer can assist with this. )

Log in via xdm, log out, and attempt to log in again.

>Fix:
Add the following to /usr/local/lib/X11/xdm/xdm-config:

    DisplayManager*authName:        MIT-MAGIC-COOKIE-1


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-xfce 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Oct 2 20:34:39 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=182561 

From: Olivier Duchateau <duchateau.olivier@gmail.com>
To: bug-followup <bug-followup@freebsd.org>
Cc:  
Subject: Re: ports/182561: x11-wm/xfce4 fails to start from xdm
Date: Wed, 2 Oct 2013 23:01:21 +0200

 In the past, I used this workaround. But it does not always work.
 
 You should migrate to x11/slim.
 
 2013/10/2  <edwin@freebsd.org>:
 > Synopsis: x11-wm/xfce4 fails to start from xdm
 >
 > Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-xfce
 > Responsible-Changed-By: edwin
 > Responsible-Changed-When: Wed Oct 2 20:34:39 UTC 2013
 > Responsible-Changed-Why:
 > Over to maintainer (via the GNATS Auto Assign Tool)
 >
 > http://www.freebsd.org/cgi/query-pr.cgi?pr=182561
 > _______________________________________________
 > freebsd-xfce@freebsd.org mailing list
 > http://lists.freebsd.org/mailman/listinfo/freebsd-xfce
 > To unsubscribe, send any mail to "freebsd-xfce-unsubscribe@freebsd.org"
 
 
 
 -- 
 olivier
>Unformatted:
