From owner-freebsd-questions@freebsd.org Sun Sep 4 22:47:26 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 0C374B71104 for ; Sun, 4 Sep 2016 22:47:26 +0000 (UTC) (envelope-from doug@safeport.com) Received: from bucksport.safeport.com (bucksport.safeport.com [198.74.231.101]) (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 CB545259 for ; Sun, 4 Sep 2016 22:47:25 +0000 (UTC) (envelope-from doug@safeport.com) Received: from bucksport.safeport.com (bucksport.safeport.com [198.74.231.101]) by bucksport.safeport.com (8.14.5/8.14.5) with ESMTP id u84MlLtt099835; Sun, 4 Sep 2016 18:47:21 -0400 (EDT) (envelope-from doug@safeport.com) Date: Sun, 4 Sep 2016 18:47:16 -0400 (EDT) From: doug@safeport.com To: Polytropon cc: freebsd-questions@freebsd.org Subject: Re: xdm does not work with xfce In-Reply-To: <20160904171306.4a17bb37.freebsd@edvax.de> Message-ID: References: <20160904171306.4a17bb37.freebsd@edvax.de> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (bucksport.safeport.com [198.74.231.101]); Sun, 04 Sep 2016 18:47:21 -0400 (EDT) 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 22:47:26 -0000 On Sun, 4 Sep 2016, Polytropon wrote: > 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. It turns out you are correct, the .xinitrc is doing nothing with .xsession. The first login after a reboot failing or not is also random. Just took longer or I is to use your technique and try to simulate the user mode start. Too bad because it was a 'magic' one line fix in fbsd 10.1. _____ Douglas Denault http://www.safeport.com doug@safeport.com Voice: 301-217-9220 Fax: 301-217-9277