From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Set the HOME environment variable in Emacs package debug script instead of using it on command line. Date: Wed, 27 Oct 2021 08:40:58 +0800 Message-ID: References: <87h7d4ml5j.fsf@zoho.eu> <877de0koxs.fsf@zoho.eu> <87y26gj6i8.fsf@zoho.eu> <87pmrrkhvb.fsf@zoho.eu> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3634"; mail-complaints-to="usenet@ciao.gmane.io" To: Emanuel Berg , help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Oct 27 02:42:43 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mfX1f-0000gv-F5 for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 27 Oct 2021 02:42:43 +0200 Original-Received: from localhost ([::1]:38076 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mfX1e-0006rO-8u for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 26 Oct 2021 20:42:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:39560) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mfX0D-0006r9-0L for help-gnu-emacs@gnu.org; Tue, 26 Oct 2021 20:41:16 -0400 Original-Received: from mail-ua1-x936.google.com ([2607:f8b0:4864:20::936]:33395) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mfX0A-0001GY-JL for help-gnu-emacs@gnu.org; Tue, 26 Oct 2021 20:41:12 -0400 Original-Received: by mail-ua1-x936.google.com with SMTP id s4so1865834uaq.0 for ; Tue, 26 Oct 2021 17:41:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=75R0yu5WY1TbBFD4Ayb4iTOGqvMK5ri0Ty7Hvku7Nz4=; b=X0kA3IvdSMgKtmDNJ5j+c0R7AMsm7ObVrteoEbFwX6wX1dgWu9OVyD3R901cfJywrf 0iH2F2XgxhOLgeQ9LcWzgVcNbSN2ejw4cSK8qJa5vmER/uytkeVdjYiYau7vQ8jd0tiM CCjxvTw+FZXKlgKI+CTLZYX1smUwy48K3ygdOTSGIDs8HktZGTwzoZ0XnBI8Qq4C0gQu pCZR5Pn2MxflBKHDYJTBeo5uX5qKfutjd87fKIdh1QiKGo+uFOSSBNA9JdHO0c9Wivjl sIZjMLPJR3DChRun1WlNEXV/v0G7uKAJQzhw9QuVmQJ931hNGJYdHNGmIVw6G/LjZkTo Morw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=75R0yu5WY1TbBFD4Ayb4iTOGqvMK5ri0Ty7Hvku7Nz4=; b=qmfSHZ6j1q2PoMf/w41uR44OrJSD4cchf95P4XMUsJ54n+ISlxO/Q1MOeTPyDwlUmk gImc+mNOFK9PtjtXMrECwS6PRx/y1uPotSMKB6D0eEMuFv3wCDa+31ykL7B/BQitGQst oFPTB4QyzNfczSwd6bO3bD6zT2RM/g1z8aqO9iY3ClMuEnpG6iAF/kzXGwALh6eBfjRC EH4QYJ08QFtgAAK53qHqGvzogQSwMoLeDEur23eVTSV0bGYN6QpFkSmD4EAEZ40UryT/ YON8H0RyUzE9uPbQbJS5uy4Uth4P7NJwxG5nlys0RjHS101UmomqflkCcH3GJ983pI9F +JzQ== X-Gm-Message-State: AOAM533w6LSUqEmxR/XWDC5Z9dIBhKkF3kKCGpn16L4APTLhlY1HRaLp HetaRox50x9XdHAsmgmHtyA2uZ5Nxl/am+xRymWLzmMb/kBuM+iK X-Google-Smtp-Source: ABdhPJw9otgJZ4mO5RsqHj0Wro/oW42Znx9oA64uDvZofPL79h7hWkyfzdCzbj4BWb+qCFmbv7I0h0dt690YClbZAWg= X-Received: by 2002:ab0:1623:: with SMTP id k32mr26895817uae.71.1635295269471; Tue, 26 Oct 2021 17:41:09 -0700 (PDT) In-Reply-To: <87pmrrkhvb.fsf@zoho.eu> Received-SPF: pass client-ip=2607:f8b0:4864:20::936; envelope-from=hongyi.zhao@gmail.com; helo=mail-ua1-x936.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:134222 Archived-At: On Tue, Oct 26, 2021 at 9:58 PM Emanuel Berg via Users list for the GNU Emacs text editor wrote: > > Hongyi Zhao wrote: > > > Although in these two methods, you get the same HOME > > variable in Emacs, this does not mean that the order of the > > libraries and related subprocesses called during Emacs > > startup is exactly the same. > > These are the methods I'm familiar with. See here [1] for more detailed explanation: ```quoted Some software uses /etc/passwd instead of the HOME variable. It's a bug. Possibly you can inspect 'proxychains-ng-socks5' if it's an script and fix the bug yourself. That bug was very common in the past. Fortunately nowadays most software has fixed it. Ivan Shmakov commented about that in comp.emacs a pair of years ago: Ivan Shmakov on comp.emacs Message-ID: <8736wyx2...@violet.siamics.net> Unfortunately, some software refers to passwd(5) data directly instead, leaving no way for the user to override the home directory location. In particular, this was the behavior (IIRC) of programs based on older Glib versions. And I vaguely recall that Emacs might have been affected as well. ``` [1] https://groups.google.com/g/comp.unix.shell/c/3vrq7pqoG-A/m/Hnk0lsKfAwAJ HZ