From owner-freebsd-questions@freebsd.org Sun Sep 4 15:13:17 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 53D64A9DBAF for ; Sun, 4 Sep 2016 15:13:17 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de (mx01.qsc.de [213.148.129.14]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1CC17D7 for ; Sun, 4 Sep 2016 15:13:16 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de (port-92-195-45-66.dynamic.qsc.de [92.195.45.66]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 066DD3CD90; Sun, 4 Sep 2016 17:13:07 +0200 (CEST) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id u84FD6gq002044; Sun, 4 Sep 2016 17:13:06 +0200 (CEST) (envelope-from freebsd@edvax.de) Date: Sun, 4 Sep 2016 17:13:06 +0200 From: Polytropon To: doug@safeport.com Cc: freebsd-questions@freebsd.org Subject: Re: xdm does not work with xfce Message-Id: <20160904171306.4a17bb37.freebsd@edvax.de> In-Reply-To: References: Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 Sep 2016 15:13:17 -0000 On Sun, 4 Sep 2016 03:29:36 -0400 (EDT), doug@safeport.com wrote: > To get xdm to work I copied /usr/local/etc/X11/xinit/xinitrc to $home/.xinitrc. > I have a .xsession file contining startxfce4. I commented out the last line in > /usr/local/lib/X11/xdm/xdm-config. The xdm display manager does not use .xinitrc, it only uses .xsession. Only if you "starx", .xinitrc will be considered. For "maximum compatibility" you can use a "cascade" like this: File .xsession: #!/bin/csh source ~/.cshrc exec ~/.xinitrc File .xinitrc: #!/bin/sh [ -f ~/.xmodmaprc ] && xmodmap ~/.xmodmaprc numlockx # ... more "autostart" stuff if needed ... exec startxfce4 Now all your settings can reside in .xinitrc, and when you use xdm, they will still be executed. The last line must start with "exec". After the program specified here exits, control should be given back to xdm. Note that this example assumes you have the C shell as your dialog shell, so all their settings (from .cshrc) will be "inherited" in shells started inside X. > I have output from xsession-errors and xdm.log. After the second login attempt > .xsession-error is rewriten to contain: > > /usr/local/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. > > xdm works on a 10.1 system with xorg-7.7_1 and xfce-4.12_1. > > My questions: Is this a known issue? Should this be posted on the X11 > mailing list? Somehow this error looks familiar to me, it occured once many years ago. The Xfce desktop cannot be started because xdm still occupies the display. This situation may rise when you start xdm manually, it does not quit properly, or several X "occupants" start at the same time. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...