From unknown Wed Jun 18 23:10:12 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#44446 <44446@debbugs.gnu.org> To: bug#44446 <44446@debbugs.gnu.org> Subject: Status: 27.1; Emacs starts in wrong directory when launched from mac OS Finder Reply-To: bug#44446 <44446@debbugs.gnu.org> Date: Thu, 19 Jun 2025 06:10:12 +0000 retitle 44446 27.1; Emacs starts in wrong directory when launched from mac = OS Finder reassign 44446 emacs submitter 44446 Richard Brooksby severity 44446 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 04 11:14:48 2020 Received: (at submit) by debbugs.gnu.org; 4 Nov 2020 16:14:48 +0000 Received: from localhost ([127.0.0.1]:50367 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaLQu-0006Sl-6S for submit@debbugs.gnu.org; Wed, 04 Nov 2020 11:14:48 -0500 Received: from lists.gnu.org ([209.51.188.17]:47296) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaLGv-0006Bw-Fu for submit@debbugs.gnu.org; Wed, 04 Nov 2020 11:04:30 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43028) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaLGo-00056B-3A for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 11:04:27 -0500 Received: from berunda.ravenbrook.com ([94.229.129.35]:34014 helo=mx.ravenbrook.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaLGj-0005nx-Ow for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 11:04:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=ravenbrook.com; s=exim4; h=To:Date:Message-Id:Subject:Mime-Version: Content-Transfer-Encoding:Content-Type:From:Sender:Reply-To:Cc:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=k88IOuYUxhFO1OWCupRYRi7Yp7qBLMNMvXlZ4jojSZY=; b=vq1pan0atYuxeHlEKlqVlBgZwM 7XAac8Hj4qPr2k2GNvAQUdf+axLlePebVKGLdCZv0UNjeETBviXO/wpaBAxGSv2KFRKomlUpUPDp1 NOtVI7YtXoVznTevQ+4rwLJyjOuXux4oFTGeSSpLnAg6X9HwN5awWGN/DOwKHDxAU2P4=; Received: from [80.225.58.206] (helo=silverbird.home) by mx.ravenbrook.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kaLGf-00088i-6z for bug-gnu-emacs@gnu.org; Wed, 04 Nov 2020 16:04:13 +0000 From: Richard Brooksby Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.17\)) Subject: 27.1; Emacs starts in wrong directory when launched from mac OS Finder Message-Id: <712F6076-03C1-47A0-8A9C-E1DDDE456351@ravenbrook.com> Date: Wed, 4 Nov 2020 16:04:12 +0000 To: bug-gnu-emacs@gnu.org X-Mailer: Apple Mail (2.3445.104.17) Received-SPF: none client-ip=94.229.129.35; envelope-from=rb@ravenbrook.com; helo=mx.ravenbrook.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/04 11:04:14 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Wed, 04 Nov 2020 11:14:46 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Launching a build of Emacs 27.1-1 downloaded from from the mac OS Finder starts Emacs in "/" rather than the user's home directory, as it did in Emacs 26. There appears to be explicit code for handling this case in main.c (see = ), and that code has changed between Emacs 26 and 27 (see = ) so it looks to me (at first glance) like this change is the culprit. Further evidence: - StackExchange = - build-emacs In GNU Emacs 27.1 (build 1, x86_64-apple-darwin18.7.0, NS appkit-1671.60 = Version 10.14.6 (Build 18G95)) of 2020-08-12 built on builder10-14.porkrind.org Windowing system distributor 'Apple', version 10.3.1671 System Description: Mac OS X 10.14.6 Recent messages: Mark set Mark saved where search started [2 times] Mark set Quit Mark set C-x C-g is undefined Quit [2 times] Making completion list... Mark saved where search started is undefined Configured using: 'configure --with-ns '--enable-locallisppath=3D/Library/Application Support/Emacs/${version}/site-lisp:/Library/Application Support/Emacs/site-lisp' --with-modules' Configured features: NOTIFY KQUEUE ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS NS MODULES THREADS JSON PDUMPER Important settings: value of $LANG: en_GB.UTF-8 locale-coding-system: utf-8-unix Major mode: C/*l Minor modes in effect: bug-reference-prog-mode: t tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t abbrev-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message rmc puny format-spec rfc822 mml mml-sec epa epg epg-config gnus-util rmail rmail-loaddefs text-property-search time-date mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cc-mode cc-fonts cc-guess cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs ruby-mode smie eieio-opt speedbar sb-image ezimage dframe find-func thingatpt help-fns radix-tree vc-git bug-reference texinfo cl-extra help-mode novice misearch multi-isearch dired-aux solarized-rb-theme todotxt-mode p4 derived edmacro kmacro cl ps-print ps-print-loaddefs ps-def lpr diff-mode easy-mmode dired dired-loaddefs compile comint ansi-color ring server finder-inf package easymenu browse-url url-handlers url-parse auth-source cl-seq eieio eieio-core cl-macs eieio-loaddefs password-cache json subr-x map url-vars seq byte-opt gv bytecomp byte-compile cconv cl-loaddefs cl-lib tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/ns-win ns-win ucs-normalize mule-util term/common-win tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page tab-bar menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame minibuffer cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript charprop case-table epa-hook jka-cmpr-hook help simple abbrev obarray cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote threads kqueue cocoa ns multi-tty make-network-process emacs) Memory information: ((conses 16 231923 8254) (symbols 48 16774 1) (strings 32 64106 2048) (string-bytes 1 1899286) (vectors 16 22498) (vector-slots 8 288882 15198) (floats 8 287 160) (intervals 56 4255 0) (buffers 1000 19)) From debbugs-submit-bounces@debbugs.gnu.org Wed Nov 04 16:43:18 2020 Received: (at 44446) by debbugs.gnu.org; 4 Nov 2020 21:43:18 +0000 Received: from localhost ([127.0.0.1]:50824 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaQYo-0004EC-1L for submit@debbugs.gnu.org; Wed, 04 Nov 2020 16:43:18 -0500 Received: from mail-lf1-f45.google.com ([209.85.167.45]:42255) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaQYl-0004Dz-P5 for 44446@debbugs.gnu.org; Wed, 04 Nov 2020 16:43:16 -0500 Received: by mail-lf1-f45.google.com with SMTP id a7so29158507lfk.9 for <44446@debbugs.gnu.org>; Wed, 04 Nov 2020 13:43:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version; bh=5F0FTCVIZWARpq9pqc3xWM7G3DG+IMoc5jS0dhD6eac=; b=VOJ9rsXtfqIzAoD8gdrYZ8Vks0qgl4rdV49JUP1tz3vvHqNU2ohdGExX2kSA9V8YDd TmPeQ1bWblfVARGiGoBsQquaSOBOvmmm3tlbEFhWJ1nm8c6ZS3s91YZb//duY5Uj6TvB uPq6d97+/n0UHvXPWHKkUQM/veGRanE1xtbcDBOw1ruEIIyWW4jK2/QlQFoM1Ygeblwb b+BFC/EEjCBHNlwqRN07aMlMwM2GyeiuhdVPn33QjcT8Jx4r5fudSpNrmmGG/lR21gDi qrS8PsMSvPntwMbdhIy5yYg28GMPFHWdYVm6Nkkgq6oabGEJQMrZYkCfN98D16rSe1GV Vaow== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version; bh=5F0FTCVIZWARpq9pqc3xWM7G3DG+IMoc5jS0dhD6eac=; b=XYiU5ydiWOiBQYWMKbdw6MmqxkZPD7PapvfxTiUW3ihmJIp8RSfHUTbdnvkSibcB48 ZOP0ydLMFHt0AoSDsmraLOFsglTg9I/zb3NhW1pbgs62PhNMm6OGVfcou19OoZiMeAVB xGn7P5yS3cdfZtPl47UZew7hdcjErvfeksy2yhGsI4ZYGkgfV21fyUVHgZRsnNTK0k/i FpQn5capdUJbGOR4oGVOKXnmxUqJkAivTVDNhAZS0zkuAb3T0kO1DZuTDbj2nToNwyRZ H5X4tNlcf/pJRuWN77F1NWgqnpbha/T9Xr8lc9n54OhKeNqi7RLezmY/ROovGkOLmEGm D9ng== X-Gm-Message-State: AOAM5320y63UYaU2LcazEBYM/6WAl8B0zXTWdDQblTXVYdNG7i2Siyna s+5rkdzIQw/R0bSObbbzSkFO83yOWSA= X-Google-Smtp-Source: ABdhPJzoTQpdhTfBlSn+DnO9QaXRNc0uCSaJPEXvQvjhGzBJYnrPCcyNL827Kjb2IMTvC/idTm6odw== X-Received: by 2002:a05:6512:214c:: with SMTP id s12mr9839504lfr.294.1604526189259; Wed, 04 Nov 2020 13:43:09 -0800 (PST) Received: from muffinmac ([91.206.110.192]) by smtp.gmail.com with ESMTPSA id j12sm514494lfe.156.2020.11.04.13.43.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Nov 2020 13:43:08 -0800 (PST) From: Andrii Kolomoiets To: Richard Brooksby Subject: Re: bug#44446: 27.1; Emacs starts in wrong directory when launched from mac OS Finder References: <712F6076-03C1-47A0-8A9C-E1DDDE456351@ravenbrook.com> Date: Wed, 04 Nov 2020 23:43:06 +0200 In-Reply-To: <712F6076-03C1-47A0-8A9C-E1DDDE456351@ravenbrook.com> (Richard Brooksby's message of "Wed, 4 Nov 2020 16:04:12 +0000") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (darwin) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44446 Cc: 44446@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) Richard Brooksby writes: > Launching a build of Emacs 27.1-1 downloaded from > from the mac OS Finder starts Emacs in "/" > rather than the user's home directory, as it did in Emacs 26. This is fixed in Bug#42836 https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42836 From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 05 02:33:12 2020 Received: (at 44446) by debbugs.gnu.org; 5 Nov 2020 07:33:12 +0000 Received: from localhost ([127.0.0.1]:51533 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaZlf-0000Ab-QT for submit@debbugs.gnu.org; Thu, 05 Nov 2020 02:33:12 -0500 Received: from mail-ed1-f44.google.com ([209.85.208.44]:34978) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kaZld-0000A7-Hv for 44446@debbugs.gnu.org; Thu, 05 Nov 2020 02:33:10 -0500 Received: by mail-ed1-f44.google.com with SMTP id ay21so482639edb.2 for <44446@debbugs.gnu.org>; Wed, 04 Nov 2020 23:33:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:in-reply-to:references:mime-version:date:message-id:subject:to :cc; bh=gOtG3AX7zdzIMWDKKdcW9FKOyBXHgZJjbdjpksSqiYY=; b=FpjUKqj+CjmxZtQ416gbfB0I8B1k3SGlSaNkhpbwFPB6WoBUSyZOeqZUg6DxL57U0R 1zbY/WVDJAjbrm/HuJrTO3RW3HuQYDnhPRAxkSeAlSGa4w6CkIDPj1emqh1mhup+8MS4 uAryzTwRTErWKMaMfbTN9o9MjyrDHnVPKYsa0AaGnzyjh6IGNE1EKZkPlXeEG+emW7P6 Ximij8x+R/LwbpRu/JG30NxIJZOUfLW1R7GHGxpPY87hEUKsP3zTTgGAIDD2ogjeiahL 03IdjWcw6LPqIGZxV+vQ3fwPUxVkuGASgUADvYbUZkTBoTonS6q4MmJ1BNCJb3Ht/HSY 0LPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:in-reply-to:references:mime-version:date :message-id:subject:to:cc; bh=gOtG3AX7zdzIMWDKKdcW9FKOyBXHgZJjbdjpksSqiYY=; b=arNLpNA5SiF/P00Lz/mAyqMIWEaLuZmWdNNWT9pUYNravpXTshEUHHwNTdAlaMqnDh ELbFTOmNRexDJ66S4xN41c4I3EbIVOjtIqXFnmi/y+lhD9759J+PXbPg2ZadN+djLN9D zRv12MhGb/i2SHPJ+cQkbswOcTPnKOpOYFwXQ91x76ZW5vovcgzC5HWzpVsLULnirAxy sxQHQGehPTHj4ePsCjy4eSm9mv+CIVTJiMRdQ3s11V0VvZa8HMCeUr3AFv+6xdJTSlnw b7BfqG07pj3lt5j1fIf/3gmsLxDeRVF6zJL39vBggreUGipji8SyBbvWk80xg+1S/B6Y wUVw== X-Gm-Message-State: AOAM5332Domu8qqKr8TgQDsb8pK7bg5+tTZ71OzoiAQ1Ws9iIGhju3lI H3ZDSoUeMLai1FISx4iY6qcQnGU0ScDFEpcbpJI= X-Google-Smtp-Source: ABdhPJxrfSCUTyzWOFCmDsjKLu4MfGRVo3X3v1uH0yG29K2AOl2ROnXqwDbjfUAUncH3ttpsTxBf/tUjAmNMxZDd298= X-Received: by 2002:aa7:d888:: with SMTP id u8mr1272398edq.210.1604561583550; Wed, 04 Nov 2020 23:33:03 -0800 (PST) Received: from 753933720722 named unknown by gmailapi.google.com with HTTPREST; Wed, 4 Nov 2020 23:33:03 -0800 From: Stefan Kangas In-Reply-To: References: <712F6076-03C1-47A0-8A9C-E1DDDE456351@ravenbrook.com> MIME-Version: 1.0 Date: Wed, 4 Nov 2020 23:33:03 -0800 Message-ID: Subject: Re: bug#44446: 27.1; Emacs starts in wrong directory when launched from mac OS Finder To: Andrii Kolomoiets , Richard Brooksby Content-Type: text/plain; charset="UTF-8" X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 44446 Cc: 44446@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) forcemerge 42836 44446 thanks Andrii Kolomoiets writes: > Richard Brooksby writes: > >> Launching a build of Emacs 27.1-1 downloaded from >> from the mac OS Finder starts Emacs in "/" >> rather than the user's home directory, as it did in Emacs 26. > > This is fixed in Bug#42836 > https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42836 Merged. Looks like the fix will be in 27.2. From unknown Wed Jun 18 23:10:12 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 03 Dec 2020 12:24:05 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator