GNU bug report logs - #15607
default-directory set to / when launch from Mac OS Dock

Previous Next

Package: emacs;

Reported by: Darren Hoo <darren.hoo <at> gmail.com>

Date: Mon, 14 Oct 2013 04:16:02 UTC

Severity: normal

Merged with 15776

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 15607 in the body.
You can then email your comments to 15607 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#15607; Package emacs. (Mon, 14 Oct 2013 04:16:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Darren Hoo <darren.hoo <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Mon, 14 Oct 2013 04:16:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Darren Hoo <darren.hoo <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: default-directory set to / when launch from Mac OS Dock
Date: Mon, 14 Oct 2013 12:15:35 +0800
open nextstep/Emacs.app --args -Q
C-x d
it prompts with /

It used to be the $HOME directory.

Is it changed intentionally recently?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15607; Package emacs. (Mon, 14 Oct 2013 05:08:02 GMT) Full text and rfc822 format available.

Message #8 received at 15607 <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Darren Hoo <darren.hoo <at> gmail.com>
Cc: 15607 <at> debbugs.gnu.org
Subject: Re: bug#15607: default-directory set to / when launch from Mac OS Dock
Date: Mon, 14 Oct 2013 07:07:26 +0200
Hello.

14 okt 2013 kl. 06:15 skrev Darren Hoo <darren.hoo <at> gmail.com>:

> open nextstep/Emacs.app --args -Q
> C-x d
> it prompts with /
> 
> It used to be the $HOME directory.
> 
> Is it changed intentionally recently?

If I don't give -Q, it prompts with $HOME.  Must be a general change w.r.t. -Q.

	Jan D.






Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15607; Package emacs. (Mon, 14 Oct 2013 05:32:02 GMT) Full text and rfc822 format available.

Message #11 received at 15607 <at> debbugs.gnu.org (full text, mbox):

From: Darren Hoo <darren.hoo <at> gmail.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 15607 <at> debbugs.gnu.org
Subject: Re: bug#15607: default-directory set to / when launch from Mac OS Dock
Date: Mon, 14 Oct 2013 13:31:24 +0800
On Mon, Oct 14, 2013 at 1:07 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:

>
> If I don't give -Q, it prompts with $HOME.  Must be a general change w.r.t. -Q.
>

With or without -Q it always give me  / as the prompt, so does -q.

I wonder how it works in other desktop environments.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15607; Package emacs. (Tue, 15 Oct 2013 03:43:01 GMT) Full text and rfc822 format available.

Message #14 received at 15607 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 15607 <at> debbugs.gnu.org, Darren Hoo <darren.hoo <at> gmail.com>
Subject: Re: bug#15607: default-directory set to / when launch from Mac OS Dock
Date: Mon, 14 Oct 2013 23:42:48 -0400
Jan Djärv wrote:

>> It used to be the $HOME directory.
>> 
>> Is it changed intentionally recently?
>
> If I don't give -Q, it prompts with $HOME. Must be a general change
> w.r.t. -Q.

I haven't noticed such a change (it would be a weird thing to do IMO),
I'd check what eg emacs 24.3 or an xterm does when opened from the Dock.
(Maybe you have something in .emacs that changes PWD?)

>> I wonder how it works in other desktop environments.

AFAIK, It uses whatever working directory the launcher sets up,
which I guess is HOME in 99+% of cases.




Reply sent to Jan Djärv <jan.h.d <at> swipnet.se>:
You have taken responsibility. (Tue, 15 Oct 2013 05:07:02 GMT) Full text and rfc822 format available.

Notification sent to Darren Hoo <darren.hoo <at> gmail.com>:
bug acknowledged by developer. (Tue, 15 Oct 2013 05:07:05 GMT) Full text and rfc822 format available.

Message #19 received at 15607-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 15607-done <at> debbugs.gnu.org, Darren Hoo <darren.hoo <at> gmail.com>
Subject: Re: bug#15607: default-directory set to / when launch from Mac OS Dock
Date: Tue, 15 Oct 2013 07:06:22 +0200
Hello.

I've checked 24.3 and 10.7/10.8:

open Emacs.app --args -Q  => /
open Emacs.app                  => $HOME
From Dock                           => $HOME

So dock starting at / must be a local thing.  Check your .emacs and environment set by launchd.

The -Q behaviour may very well be NS-specific, but it isn't new.
I see no bug here, closing.

	Jan D.

15 okt 2013 kl. 05:42 skrev Glenn Morris <rgm <at> gnu.org>:

> Jan Djärv wrote:
> 
>>> It used to be the $HOME directory.
>>> 
>>> Is it changed intentionally recently?
>> 
>> If I don't give -Q, it prompts with $HOME. Must be a general change
>> w.r.t. -Q.
> 
> I haven't noticed such a change (it would be a weird thing to do IMO),
> I'd check what eg emacs 24.3 or an xterm does when opened from the Dock.
> (Maybe you have something in .emacs that changes PWD?)
> 
>>> I wonder how it works in other desktop environments.
> 
> AFAIK, It uses whatever working directory the launcher sets up,
> which I guess is HOME in 99+% of cases.





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15607; Package emacs. (Thu, 17 Oct 2013 03:58:02 GMT) Full text and rfc822 format available.

Message #22 received at 15607-done <at> debbugs.gnu.org (full text, mbox):

From: Darren Hoo <darren.hoo <at> gmail.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 15607-done <at> debbugs.gnu.org
Subject: Re: bug#15607: default-directory set to / when launch from Mac OS Dock
Date: Thu, 17 Oct 2013 11:57:21 +0800
sorry to have missed filling the details while filing the report.

As YAMAMOTO Mitsuharu describes in
http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00498.html

I can confirm that the -psn_* option is no longer passed as args when
launched from GUI under OSX 10.9.

On Tue, Oct 15, 2013 at 1:06 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
> Hello.
>
> I've checked 24.3 and 10.7/10.8:
>
> open Emacs.app --args -Q  => /
> open Emacs.app                  => $HOME
> From Dock                           => $HOME
>
> So dock starting at / must be a local thing.  Check your .emacs and environment set by launchd.
>
> The -Q behaviour may very well be NS-specific, but it isn't new.
> I see no bug here, closing.
>
>         Jan D.
>
> 15 okt 2013 kl. 05:42 skrev Glenn Morris <rgm <at> gnu.org>:
>
>> Jan Djärv wrote:
>>
>>>> It used to be the $HOME directory.
>>>>
>>>> Is it changed intentionally recently?
>>>
>>> If I don't give -Q, it prompts with $HOME. Must be a general change
>>> w.r.t. -Q.
>>
>> I haven't noticed such a change (it would be a weird thing to do IMO),
>> I'd check what eg emacs 24.3 or an xterm does when opened from the Dock.
>> (Maybe you have something in .emacs that changes PWD?)
>>
>>>> I wonder how it works in other desktop environments.
>>
>> AFAIK, It uses whatever working directory the launcher sets up,
>> which I guess is HOME in 99+% of cases.
>




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15607; Package emacs. (Sun, 20 Oct 2013 16:49:03 GMT) Full text and rfc822 format available.

Message #25 received at 15607-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Darren Hoo <darren.hoo <at> gmail.com>
Cc: 15607-done <at> debbugs.gnu.org
Subject: Re: bug#15607: default-directory set to / when launch from Mac OS Dock
Date: Sun, 20 Oct 2013 18:48:20 +0200
Hello.

17 okt 2013 kl. 05:57 skrev Darren Hoo <darren.hoo <at> gmail.com>:

> sorry to have missed filling the details while filing the report.
> 
> As YAMAMOTO Mitsuharu describes in
> http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00498.html
> 
> I can confirm that the -psn_* option is no longer passed as args when
> launched from GUI under OSX 10.9.
> 

Ok, I tried a different GUI-detection in the trunk.

	Jan D.

> On Tue, Oct 15, 2013 at 1:06 PM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:
>> Hello.
>> 
>> I've checked 24.3 and 10.7/10.8:
>> 
>> open Emacs.app --args -Q  => /
>> open Emacs.app                  => $HOME
>> From Dock                           => $HOME
>> 
>> So dock starting at / must be a local thing.  Check your .emacs and environment set by launchd.
>> 
>> The -Q behaviour may very well be NS-specific, but it isn't new.
>> I see no bug here, closing.
>> 
>>        Jan D.
>> 
>> 15 okt 2013 kl. 05:42 skrev Glenn Morris <rgm <at> gnu.org>:
>> 
>>> Jan Djärv wrote:
>>> 
>>>>> It used to be the $HOME directory.
>>>>> 
>>>>> Is it changed intentionally recently?
>>>> 
>>>> If I don't give -Q, it prompts with $HOME. Must be a general change
>>>> w.r.t. -Q.
>>> 
>>> I haven't noticed such a change (it would be a weird thing to do IMO),
>>> I'd check what eg emacs 24.3 or an xterm does when opened from the Dock.
>>> (Maybe you have something in .emacs that changes PWD?)
>>> 
>>>>> I wonder how it works in other desktop environments.
>>> 
>>> AFAIK, It uses whatever working directory the launcher sets up,
>>> which I guess is HOME in 99+% of cases.
>> 





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#15607; Package emacs. (Mon, 21 Oct 2013 01:27:01 GMT) Full text and rfc822 format available.

Message #28 received at 15607-done <at> debbugs.gnu.org (full text, mbox):

From: Darren Hoo <darren.hoo <at> gmail.com>
To: Jan Djärv <jan.h.d <at> swipnet.se>
Cc: 15607-done <at> debbugs.gnu.org
Subject: Re: bug#15607: default-directory set to / when launch from Mac OS Dock
Date: Mon, 21 Oct 2013 09:26:42 +0800
[Message part 1 (text/plain, inline)]
Hi,

works for me.

Thanks!


On Mon, Oct 21, 2013 at 12:48 AM, Jan Djärv <jan.h.d <at> swipnet.se> wrote:

> Hello.
>
> 17 okt 2013 kl. 05:57 skrev Darren Hoo <darren.hoo <at> gmail.com>:
>
> > sorry to have missed filling the details while filing the report.
> >
> > As YAMAMOTO Mitsuharu describes in
> > http://lists.gnu.org/archive/html/emacs-devel/2013-10/msg00498.html
> >
> > I can confirm that the -psn_* option is no longer passed as args when
> > launched from GUI under OSX 10.9.
> >
>
> Ok, I tried a different GUI-detection in the trunk.
>
>         Jan D.
>
>
[Message part 2 (text/html, inline)]

Merged 15607 15776. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 01 Nov 2013 16:08:01 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 30 Nov 2013 12:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 170 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.