From owner-freebsd-questions@freebsd.org Sat May 2 07:51:51 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 5619E2C721B for ; Sat, 2 May 2020 07:51:51 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.kundenserver.de", Issuer "TeleSec ServerPass Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49DhCT2SXLz3NdQ for ; Sat, 2 May 2020 07:51:48 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from r56.edvax.de ([178.12.45.85]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPA (Nemesis) id 1MN67J-1jl4tw23wz-00J39v; Sat, 02 May 2020 09:51:45 +0200 Date: Sat, 2 May 2020 09:51:44 +0200 From: Polytropon To: Per Hedeland Cc: Robert Huff , freebsd-questions@freebsd.org Subject: Re: Xdm var/log/xdm.log Message-Id: <20200502095144.787d9d0a.freebsd@edvax.de> In-Reply-To: <16588249-02ee-b4a1-dbd2-1ec8972ff023@hedeland.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> <20200501151725.635f7b29.freebsd@edvax.de> <16588249-02ee-b4a1-dbd2-1ec8972ff023@hedeland.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:ZXk5S2JLANBscpoeJ/U3dOqsEaH5dQU+HFcDwQH2edA2Y4AUVV0 cOS6JiUiHP576dzwD+jzEKrZsZbYAkZgBGDJDlnnimPZkCgxRuAKrKBCXS4lWhfU1YFQQKO Oq2KYxAZbMl7cgxAYFBKEAD/XEu2RHWvNPI/SH61v/nodvmAu6jAHOUSP6hxG7jtNhgyNU2 cGSThIBPW3laq8+eGYswQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:LrBsjnl3Djo=:/h797WpgUBtd+IL/63G2L/ rNwYQTdmZCO7ElMmRTbNHaL63y57Cyj/U+7hBnSjPOrMj3BpLhVhPEuNJEXkX/PEvz0+Mi098 6TRNmR2ldiBXsA7gOAwp9Yfn4Q8aUfBXS1ZmF546lXsbLpZeOfTXh9in+8NAkARVZWIm6+7lN mHMdWJaJy2flc6ctRNTOTDuFteDomJzCRZiJmfzXik/zpt5zwh93RI06r+AlO+NYYUi10udHQ Pj212n7N/GLARiOxCYJ9jDsflXKmr8TrGi4n5Fa+kcSxaXXfeL/ZC8k32t0BCMsEImZHs2/8L tOeGdT8MtWwrdJ6xi31AdO5qvKFzVxYqEfSNowpAJIhhnv+DfgqAzOg4fqaSmHsYLluU8HUx/ lPFRMVMV/U9L2lROz0ZIR/1dDIHcAlw2UJTZv+roFhM2o5klL2UYUTeRX4ZqeKzk/6QKw0jSb 9jyrKhfIKyr1QEePLFifWQsD3/acputi5PVHzSmi0NbmFWoCXX35QeMa4L70oTPo/kUewPPEV 76M0cKYxfJU3LbLtFG3nk7PHHAoD3JCc4cu96q7D51ts/V5q5CEZ9UUPrzM365n6a5r+j7g52 /wTnIoom1W9ynXqZTyk99rtae+jcfJpUpXeg7+VJQ1mI3Zj7wZxa47Sx367TnSnU0L0SD6Ugc EztsB+dxrxnYuK9qX8Y9MeGZGDi+X54bdk0p1vTExk8EBuQtvSeWJyW+IgCve1UvUw2FIoNQn pxCli2FgGLzCtO84mZ7sNk3/JeDmnWnL2rkR/PQBreKqcjyLJuBOGDwm7yu6rbvcLSQ1ckXuL LI5tEHEW6jAEdCUPONwE7l+LfxAEbKr/S+Ph/e/dLR5NQE4U2cJSq9Y2Y+oK8nXEK6xD5hQ X-Rspamd-Queue-Id: 49DhCT2SXLz3NdQ 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 212.227.126.130) smtp.mailfrom=freebsd@edvax.de X-Spamd-Result: default: False [4.64 / 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)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; MIME_TRACE(0.00)[0:+]; RECEIVED_SPAMHAUS_PBL(0.00)[85.45.12.178.khpj7ygk5idzvmvt5x4ziurxhy.zen.dq.spamhaus.net : 127.0.0.11]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[edvax.de]; AUTH_NA(1.00)[]; NEURAL_SPAM_MEDIUM(0.78)[0.776,0]; TO_MATCH_ENVRCPT_SOME(0.00)[]; NEURAL_SPAM_LONG(1.00)[0.998,0]; MID_CONTAINS_FROM(1.00)[]; RCVD_IN_DNSWL_NONE(0.00)[130.126.227.212.list.dnswl.org : 127.0.5.0]; R_SPF_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; IP_SCORE(0.47)[ip: (1.54), ipnet: 212.227.0.0/16(-1.21), asn: 8560(2.04), 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: Sat, 02 May 2020 07:51:51 -0000 On Sat, 2 May 2020 09:09:35 +0200, Per Hedeland wrote: > On 2020-05-01 15:17, Polytropon wrote: > > 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. > > I believe you are confusing .cshrc with .login - .cshrc is read by > *every* instance of [t]csh unless the -f option is used, while .login > is indeed only read by login shells (and thus pretty much useless). Yes, that's what "man csh" says... but decades ago it didn't work. I remember that when using xdm with .xsession to launch the user components of X, whenever I opened a terminal, my C shell settings from .cshrc (!) weren't included, that's why I invented the "cascading approach" for .xsession and .xinitrc. That was a long time ago, but it still works. I don't know how other display managers handle things. I did not need that for slim, and I got rid of gdm quite quickly because it didn't care for _any_ user configuration file (no .xsession, no .xinitrc, no nothing). > FWIW, while I use tcsh as my interactive shell, both my .xsession and > .xinitrc have #!/bin/sh (as all scripts should:-), [...] I think the #!/bin/sh in .xinitrc is just for the reader, because the manual of startx says that it will use /bin/sh for execution if .xinitrc regardless. However, it's not wrong and it doesn't do any harm. Similarly, there is no mention that this file has to be executable (+x attribute set), but again, it's probably not wronger than the #!/bin/sh line... :-) -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...