unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#15607: default-directory set to / when launch from Mac OS Dock
@ 2013-10-14  4:15 Darren Hoo
  2013-10-14  5:07 ` Jan Djärv
  0 siblings, 1 reply; 8+ messages in thread
From: Darren Hoo @ 2013-10-14  4:15 UTC (permalink / raw)
  To: 15607

open nextstep/Emacs.app --args -Q
C-x d
it prompts with /

It used to be the $HOME directory.

Is it changed intentionally recently?





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15607: default-directory set to / when launch from Mac OS Dock
  2013-10-14  4:15 bug#15607: default-directory set to / when launch from Mac OS Dock Darren Hoo
@ 2013-10-14  5:07 ` Jan Djärv
  2013-10-14  5:31   ` Darren Hoo
  2013-10-15  3:42   ` Glenn Morris
  0 siblings, 2 replies; 8+ messages in thread
From: Jan Djärv @ 2013-10-14  5:07 UTC (permalink / raw)
  To: Darren Hoo; +Cc: 15607

Hello.

14 okt 2013 kl. 06:15 skrev Darren Hoo <darren.hoo@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.







^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15607: default-directory set to / when launch from Mac OS Dock
  2013-10-14  5:07 ` Jan Djärv
@ 2013-10-14  5:31   ` Darren Hoo
  2013-10-15  3:42   ` Glenn Morris
  1 sibling, 0 replies; 8+ messages in thread
From: Darren Hoo @ 2013-10-14  5:31 UTC (permalink / raw)
  To: Jan Djärv; +Cc: 15607

On Mon, Oct 14, 2013 at 1:07 PM, Jan Djärv <jan.h.d@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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15607: default-directory set to / when launch from Mac OS Dock
  2013-10-14  5:07 ` Jan Djärv
  2013-10-14  5:31   ` Darren Hoo
@ 2013-10-15  3:42   ` Glenn Morris
  2013-10-15  5:06     ` Jan Djärv
  1 sibling, 1 reply; 8+ messages in thread
From: Glenn Morris @ 2013-10-15  3:42 UTC (permalink / raw)
  To: Jan Djärv; +Cc: 15607, Darren Hoo

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.





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15607: default-directory set to / when launch from Mac OS Dock
  2013-10-15  3:42   ` Glenn Morris
@ 2013-10-15  5:06     ` Jan Djärv
  2013-10-17  3:57       ` Darren Hoo
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Djärv @ 2013-10-15  5:06 UTC (permalink / raw)
  To: Glenn Morris; +Cc: 15607-done, Darren Hoo

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@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.






^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15607: default-directory set to / when launch from Mac OS Dock
  2013-10-15  5:06     ` Jan Djärv
@ 2013-10-17  3:57       ` Darren Hoo
  2013-10-20 16:48         ` Jan Djärv
  0 siblings, 1 reply; 8+ messages in thread
From: Darren Hoo @ 2013-10-17  3:57 UTC (permalink / raw)
  To: Jan Djärv; +Cc: 15607-done

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@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@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.
>





^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15607: default-directory set to / when launch from Mac OS Dock
  2013-10-17  3:57       ` Darren Hoo
@ 2013-10-20 16:48         ` Jan Djärv
  2013-10-21  1:26           ` Darren Hoo
  0 siblings, 1 reply; 8+ messages in thread
From: Jan Djärv @ 2013-10-20 16:48 UTC (permalink / raw)
  To: Darren Hoo; +Cc: 15607-done

Hello.

17 okt 2013 kl. 05:57 skrev Darren Hoo <darren.hoo@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@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@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.
>> 






^ permalink raw reply	[flat|nested] 8+ messages in thread

* bug#15607: default-directory set to / when launch from Mac OS Dock
  2013-10-20 16:48         ` Jan Djärv
@ 2013-10-21  1:26           ` Darren Hoo
  0 siblings, 0 replies; 8+ messages in thread
From: Darren Hoo @ 2013-10-21  1:26 UTC (permalink / raw)
  To: Jan Djärv; +Cc: 15607-done

[-- Attachment #1: Type: text/plain, Size: 592 bytes --]

Hi,

works for me.

Thanks!


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

> Hello.
>
> 17 okt 2013 kl. 05:57 skrev Darren Hoo <darren.hoo@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.
>
>

[-- Attachment #2: Type: text/html, Size: 1220 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-10-21  1:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-14  4:15 bug#15607: default-directory set to / when launch from Mac OS Dock Darren Hoo
2013-10-14  5:07 ` Jan Djärv
2013-10-14  5:31   ` Darren Hoo
2013-10-15  3:42   ` Glenn Morris
2013-10-15  5:06     ` Jan Djärv
2013-10-17  3:57       ` Darren Hoo
2013-10-20 16:48         ` Jan Djärv
2013-10-21  1:26           ` Darren Hoo

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).