From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: path, cwd in NS port Date: Thu, 28 May 2020 19:10:43 +0300 Message-ID: <831rn4rqf0.fsf@gnu.org> References: <20200528110037.53f0b487@jabberwock.cb.piermont.com> Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="64951"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: "Perry E. Metzger" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu May 28 18:11:40 2020 Return-path: Envelope-to: ged-emacs-devel@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 1jeL85-000Gj9-T0 for ged-emacs-devel@m.gmane-mx.org; Thu, 28 May 2020 18:11:37 +0200 Original-Received: from localhost ([::1]:36406 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeL84-0001Zp-Ta for ged-emacs-devel@m.gmane-mx.org; Thu, 28 May 2020 12:11:36 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:37564) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jeL7M-0000SR-Df for emacs-devel@gnu.org; Thu, 28 May 2020 12:10:52 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:35639) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jeL7M-0003oJ-1R; Thu, 28 May 2020 12:10:52 -0400 Original-Received: from [176.228.60.248] (port=3231 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1jeL7L-0007Il-B5; Thu, 28 May 2020 12:10:51 -0400 In-Reply-To: <20200528110037.53f0b487@jabberwock.cb.piermont.com> (perry@piermont.com) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:251554 Archived-At: > Date: Thu, 28 May 2020 11:00:37 -0400 > From: "Perry E. Metzger" > > Howdy! For years, it has irritated me a bit that when Emacs is > invoked by double-clicking the icon in the NS port, that the > user's path is basically empty and the selected cwd is sometimes "/". > > I would like to make it possible for a user to at least correct this > situation in their .emacs by knowing when Emacs has been invoked by > launching the .app versus when it has been invoked from the command > line (and has the proper PATH set etc.) > > Does anyone have ideas for ways that the user could figure out which > it is correctly inside their init file? (It's okay if the method > doesn't currently exist and it would require hacking to Emacs to add > such a feature; I'll happily do that.) Is this the same problem as discussed in bug#40924? (I don't use macOS, so apologies if I;m confused about this issue.)