From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Perry Smith Newsgroups: gmane.emacs.help Subject: Re: default-directory launched from Dock macOS Date: Tue, 28 Apr 2020 07:45:49 -0500 Message-ID: <01E79805-D950-4876-BF92-CB0F2FEA36CA@easesoftware.com> References: <20200427.172441.848202153844253762.tak.kunihiro@gmail.com> <20200428.134710.626410507196052586.tak.kunihiro@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.80.23.2.2\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="106443"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs@gnu.org To: Nicolas Cavigneaux Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 28 14:49:15 2020 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 1jTPfn-000RZl-Is for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 28 Apr 2020 14:49:15 +0200 Original-Received: from localhost ([::1]:55950 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTPfm-0007hV-Hb for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 28 Apr 2020 08:49:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:57678) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jTPdp-0007T2-BT for help-gnu-emacs@gnu.org; Tue, 28 Apr 2020 08:48:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.90_1) (envelope-from ) id 1jTPcZ-0005fE-NW for help-gnu-emacs@gnu.org; Tue, 28 Apr 2020 08:47:12 -0400 Original-Received: from blue.elm.relay.mailchannels.net ([23.83.212.20]:53368) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jTPcZ-0005eE-2V for help-gnu-emacs@gnu.org; Tue, 28 Apr 2020 08:45:55 -0400 X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id E8298361B26; Tue, 28 Apr 2020 12:45:51 +0000 (UTC) Original-Received: from mi3-ss4.a2hosting.com (100-96-22-19.trex.outbound.svc.cluster.local [100.96.22.19]) (Authenticated sender: a2hosting) by relay.mailchannels.net (Postfix) with ESMTPA id E4227361C1A; Tue, 28 Apr 2020 12:45:50 +0000 (UTC) X-Sender-Id: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com Original-Received: from mi3-ss4.a2hosting.com (mi3-ss4.a2hosting.com [68.66.200.199]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384) by 0.0.0.0:2500 (trex/5.18.6); Tue, 28 Apr 2020 12:45:51 +0000 X-MC-Relay: Neutral X-MailChannels-SenderId: a2hosting|x-authuser|pedz+easesoftware.com@mi3-ss4.a2hosting.com X-MailChannels-Auth-Id: a2hosting X-Hysterical-Glossy: 21b6f159678a2bb1_1588077951542_3137389230 X-MC-Loop-Signature: 1588077951542:789220906 X-MC-Ingress-Time: 1588077951542 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=easesoftware.com; s=default; h=To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Sender:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=zu1wm//PEGmbhKi8mZLLq0xpx1JDm7knD3CDNGYlaWM=; b=hiacfHspsMz4MLyVnfBd5FMCI jmin1Hl+h0yv7KMM9u0MMnlEBmnTwPJetPFASmR7M7B9+6B6RbVs0RV7JG4QNaUh7bBjX+WZHjSLR 0Cd6EX7rD8KHuNEb58r6epvnFmkgzYAemvP88UzcaaYkqQ0dSy4h8rjscsUECayS9UN5U4etjRxd7 K7FOoux7l7ZDHTAoeB+QQJFxieUk6+ONff/3FiowmW3spjIKTZqhN9f+gNkAGMvM/YlkSH9R91u5K KuAhYQXRxTs9JzLfXV2Na4mxcbhI7t6S+8qB44kxTG7oJZ7yGZC38Je9qVzBMNe3Vc0jjymCbEdSK /oHZXEmFw==; Original-Received: from mobile-107-107-191-186.mycingular.net ([107.107.191.186]:9827 helo=macbook-pro.localdomain) by mi3-ss4.a2hosting.com with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92) (envelope-from ) id 1jTPcT-00CXWY-W9; Tue, 28 Apr 2020 08:45:50 -0400 In-Reply-To: X-Mailer: Apple Mail (2.3608.80.23.2.2) X-AuthUser: pedz+easesoftware.com@mi3-ss4.a2hosting.com Received-SPF: pass client-ip=23.83.212.20; envelope-from=pedz@easesoftware.com; helo=blue.elm.relay.mailchannels.net X-detected-operating-system: by eggs.gnu.org: First seen = 2020/04/28 08:45:52 X-ACL-Warn: Detected OS = Linux 3.11 and newer [fuzzy] X-Received-From: 23.83.212.20 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:122965 Archived-At: > On Apr 28, 2020, at 2:46 AM, Nicolas Cavigneaux = wrote: >=20 > Tak Kunihiro writes: >=20 >> From: =EC=A1=B0=EC=84=B1=EB=B9=88 >> Subject: Re: default-directory launched from Dock macOS >> Date: Tue, 28 Apr 2020 08:37:33 +0900 >>=20 >>>> I want to launch emacs from Dock on macOS. >>>>=20 >>>> =46rom scratch buffer on emacs 26.3, C-x C-f prompts home directory >>>> "~/". However, from scratch buffer on emacs 27.0.91, C-x C-f = prompts >>>> root directory "/", which is inconvenient. >>=20 >>> I also noticed this - I launch Emacs from spotlight, and it=E2=80=99s = pretty >>> inconvenient. Can anybody explain why the change happened? >>> Was it explicit? >>=20 >> It's good to know I'm not the only one. >=20 > Maybe it's related to how MacOS and Spotlight handle environment > variables when the app is launch by clicking its icon or using > spotlight. >=20 > There are good chance that your HOME environment variable is empty. >=20 > You can instruct MacOS about these environment variables by following = a > post I wrote about it: >=20 > = https://www.bounga.org/tips/2020/04/07/instructs-mac-os-gui-apps-about-pat= h-environment-variable/ >=20 > Hope this helps. This sounded plausible but HOME is set to my HOME directory and USER is = set to my user name. It will be curious to learn what changed.