Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Dec 2015 20:54:38 +0100
From:      Polytropon <freebsd@edvax.de>
To:        Bertram Scharpf <lists@bertram-scharpf.de>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: freebsd-update editor choice
Message-ID:  <20151215205438.a66ed0c4.freebsd@edvax.de>
In-Reply-To: <20151215143443.GA20588@becker.bs.l>
References:  <20151213182848.M69104@brightstar.bomgardner.net> <20151215124601.GA4020@becker.bs.l> <CAA2O=b-W1MV=0RGy_M7VO_d_HjJ6HkiKa%2B%2BheUOgca3eJOQ9sw@mail.gmail.com> <20151215143443.GA20588@becker.bs.l>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 15 Dec 2015 15:34:43 +0100, Bertram Scharpf wrote:
> Hi,
> 
> On Tuesday, 15. Dec 2015, 14:59:07 +0200, Anton Sayetsky wrote:
> > 15 дек. 2015 г. 14:46 пользователь "Bertram Scharpf" <
> > lists@bertram-scharpf.de> написал:
> > > The problem I fussed about many times and long times without
> > > any understanding up to this day is not how but _where_ to
> > > set the EDITOR environment variable. There is
> > >
> > >   - /etc/login.conf
> > This applies to all logins.
> 
> Not the X login.

That's correct - it will only apply to login shells.
If you want to make sure all your settings work in X,
you can use this "cascade" approach: In ~/.xsession

	#!/bin/csh
	source ~/.cshrc
	exec ~/.xinitrc

This file will be read by the display manager. And then
use ~/.xinitrc for your individual X setup. Now all the
X terminals started inside X will correctly reflect your
shell settings (global and local).

Two advantages: You have your X setup only in _one_ file,
and it will work no matter if you use "startx" or XDM or
Slim or any other display manager (except maybe the one
of Gnome which totally does _not_ what you think it does).



> My workaround is to source "/etc/profile" in " ~/.xinitrc".
> Nevertheless it is surprising behaviour. I log in and
> "login.conf" will not be read.

Interesting approach. :-)




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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20151215205438.a66ed0c4.freebsd>