Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 1 May 2020 15:17:25 +0200
From:      Polytropon <freebsd@edvax.de>
To:        Robert Huff <roberthuff@rcn.com>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Xdm var/log/xdm.log
Message-ID:  <20200501151725.635f7b29.freebsd@edvax.de>
In-Reply-To: <24236.3691.152243.385927@jerusalem.litteratus.org>
References:  <CY4PR19MB165569C1F62D653DEA0BC086F9AA0@CY4PR19MB1655.namprd19.prod.outlook.com> <20200501051811.2b24d320.freebsd@edvax.de> <CY4PR19MB1655947EFA1876957A4FD2CDF9AB0@CY4PR19MB1655.namprd19.prod.outlook.com> <20200501053836.76a32eaf.freebsd@edvax.de> <CY4PR19MB165588762EA2A92CF95C361FF9AB0@CY4PR19MB1655.namprd19.prod.outlook.com> <20200501060500.4a89db8b.freebsd@edvax.de> <24235.45694.473965.863585@jerusalem.litteratus.org> <20200501073326.ace7ae66.freebsd@edvax.de> <24236.3691.152243.385927@jerusalem.litteratus.org>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
On Fri, 1 May 2020 07:56:27 -0400, Robert Huff wrote:
> 
> Polytropon writes:
> 
> >  > >  > Ok, I will add xsession.
> >  > >  
> >  > >  NB: .xsession (the dot is significant).
> >  > >  
> >  > >  Or you can do the following, as you said you already have
> >  > >  a .xinitrc (which xdm will ignore, as mentioned):
> >  > >  
> >  > >  	% cp .xinitrc .xsession
> >  > 
> >  > 	From my home directory:
> >  > 
> >  > lrwxrwxr-x   1 huff  huff         8 May  1 01:19 .xsession -> .xinitrc
> >  > 
> >  > 	This implies you want the same environment from both.
> >  
> >  Will usually work, but doesn't keep C shell initialization
> >  (environmental variables, aliases, settings), which might
> >  not be a problem if you're not using the C shell for dialog
> >  sessions or if you concentrate on GUI entirely. :-)
> 
> 	Once	I start X, I do pretty much everything within it.  For the
> rest I console-switch.
> 	(And the first line of the file is "#! /bin/sh".  :-) )
> 	What is there that one might wish to do that can't be handled out
> of an xterm?

If I remember correctly, if you use xdm, and start an X terminal
inside the X session, your settings from .cshrc will not be in
effect due to the fact that the invoked shell is not a login shell.
So aliases don't work, environmental variables aren't set, and
so on. That's why the strange "source and continue" approach
in xdm's "user login" file.

If you login via console (ex. text mode) and then used "startx",
all C shell settings, already present due to being logged in with
a login shell, will be inherited by all C shell sessions launched
from within X (X terminals).

Keep in mind, this is "grown knowledge" decades old, so it
might be filed under "cargo cult". ;-)


-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?20200501151725.635f7b29.freebsd>