From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#48579: 28.0.50; Spawning an emacs process using call-process results in inconsistent, behavior between GNU/Linux and macOS Date: Sat, 22 May 2021 16:10:59 +0300 Message-ID: <83wnrqkj6k.fsf@gnu.org> References: <2d81bff4-21fc-ce96-f1f1-f0bbf60b233e@daniel-mendler.de> <9002b376-2ef7-db7d-9d7a-092cda82efe1@daniel-mendler.de> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1158"; mail-complaints-to="usenet@ciao.gmane.io" Cc: mail@daniel-mendler.de, alan@idiocy.org, 48579@debbugs.gnu.org To: Alan Third Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat May 22 15:12:09 2021 Return-path: Envelope-to: geb-bug-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 1lkRQG-00005c-Vr for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 May 2021 15:12:08 +0200 Original-Received: from localhost ([::1]:45966 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkRQG-00024c-3N for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 22 May 2021 09:12:08 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:55490) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkRQA-00024C-5P for bug-gnu-emacs@gnu.org; Sat, 22 May 2021 09:12:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:55220) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lkRQ9-0004hB-U5 for bug-gnu-emacs@gnu.org; Sat, 22 May 2021 09:12:01 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lkRQ9-0000KZ-PA for bug-gnu-emacs@gnu.org; Sat, 22 May 2021 09:12:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 22 May 2021 13:12:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48579 X-GNU-PR-Package: emacs Original-Received: via spool by 48579-submit@debbugs.gnu.org id=B48579.16216890681208 (code B ref 48579); Sat, 22 May 2021 13:12:01 +0000 Original-Received: (at 48579) by debbugs.gnu.org; 22 May 2021 13:11:08 +0000 Original-Received: from localhost ([127.0.0.1]:38533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkRPI-0000JQ-Fw for submit@debbugs.gnu.org; Sat, 22 May 2021 09:11:08 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:33482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lkRPD-0000Ih-WD for 48579@debbugs.gnu.org; Sat, 22 May 2021 09:11:07 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:59210) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lkRP8-0004D5-Bj; Sat, 22 May 2021 09:10:58 -0400 Original-Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1209 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lkRP7-00059j-Kv; Sat, 22 May 2021 09:10:58 -0400 In-Reply-To: (message from Alan Third on Sat, 22 May 2021 14:01:06 +0100) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:207052 Archived-At: > Date: Sat, 22 May 2021 14:01:06 +0100 > From: Alan Third > Cc: Eli Zaretskii , 48579@debbugs.gnu.org > > > the problem here is if Emacs is started from a script. Would it be > > possible to adjust the directory changing behavior, for example if > > Emacs is started with the arguments `--daemon`, `--batch` or > > `--script`? Is there another way to detect if the finder launched > > Emacs, such that only in that case the directory changing to the > > home directory takes place? > > You can run with "-t", "-nw", "--chdir", "--batch" or "--script" to > disable this behaviour. That again doesn't necessarily mean you'd be able to tell the cwd of the Emacs process at any time during the session.