From owner-freebsd-questions@freebsd.org Fri May 1 13:17:31 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1A4752D58F7 for ; Fri, 1 May 2020 13:17:31 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [217.72.192.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49DCTj43n1z4WVS for ; Fri, 1 May 2020 13:17:29 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([94.223.160.45]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.183]) with ESMTPA (Nemesis) id 1Mcp7M-1iw04S0Iwk-00ZtAy; Fri, 01 May 2020 15:17:26 +0200 Date: Fri, 1 May 2020 15:17:25 +0200 From: Polytropon To: Robert Huff 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: <20200501051811.2b24d320.freebsd@edvax.de> <20200501053836.76a32eaf.freebsd@edvax.de> <20200501060500.4a89db8b.freebsd@edvax.de> <24235.45694.473965.863585@jerusalem.litteratus.org> <20200501073326.ace7ae66.freebsd@edvax.de> <24236.3691.152243.385927@jerusalem.litteratus.org> 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-Provags-ID: V03:K1:6rs8aalqK9yqie+JWau9RHOc+B9TvA8MI/nHc4IRaQKKVeCHhAF A/QPoAMOIpIqoKP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LK+dCJqIVdFkQ8EQp9G8tusI+3u9Z X-Rspamd-Queue-Id: 49DCTj43n1z4WVS X-Spamd-Bar: ++++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of freebsd@edvax.de has no SPF policy when checking 217.72.192.74) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.11 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[freebsd@edvax.de]; TO_DN_SOME(0.00)[]; MV_CASE(0.50)[]; HAS_ORG_HEADER(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RECEIVED_SPAMHAUS_PBL(0.00)[45.160.223.94.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:8560, ipnet:217.72.192.0/20, country:DE]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.39)[0.393,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[1.000,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[74.192.72.217.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[74.192.72.217.rep.mailspike.net : 127.0.0.17]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.32)[ip: (-0.72), ipnet: 217.72.192.0/20(0.28), asn: 8560(2.05), country: DE(-0.02)] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 01 May 2020 13:17:31 -0000 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, ...