GNU bug report logs - #66514
start-process explorer.exe open wrong directory

Previous Next

Package: emacs;

Reported by: Shynur Xie <one.last.kiss <at> outlook.com>

Date: Fri, 13 Oct 2023 11:42:02 UTC

Severity: normal

Done: Eli Zaretskii <eliz <at> gnu.org>

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 66514 in the body.
You can then email your comments to 66514 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#66514; Package emacs. (Fri, 13 Oct 2023 11:42:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Shynur Xie <one.last.kiss <at> outlook.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 13 Oct 2023 11:42:02 GMT) Full text and rfc822 format available.

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

From: Shynur Xie <one.last.kiss <at> outlook.com>
To: "bug-gnu-emacs <at> gnu.org" <bug-gnu-emacs <at> gnu.org>
Subject: start-process explorer.exe open wrong directory
Date: Fri, 13 Oct 2023 11:40:44 +0000
(Emacs v29.1 on MS-Windows)

Reproduce:

  1. $ emacs.exe -Q
  2. (start-process "Explorer" nil "explorer.exe" "C:/Users/username")

I think it should open the HOME folder,
but it actually opened "C:/Users/username/Documents".

When I use shell-mode or eshell, explorer works as expected.



Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66514; Package emacs. (Fri, 13 Oct 2023 12:55:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Shynur Xie <one.last.kiss <at> outlook.com>
Cc: 66514 <at> debbugs.gnu.org
Subject: Re: bug#66514: start-process explorer.exe open wrong directory
Date: Fri, 13 Oct 2023 15:53:40 +0300
> From: Shynur Xie <one.last.kiss <at> outlook.com>
> Date: Fri, 13 Oct 2023 11:40:44 +0000
> msip_labels: 
> 
> (Emacs v29.1 on MS-Windows)
> 
> Reproduce:
> 
>   1. $ emacs.exe -Q
>   2. (start-process "Explorer" nil "explorer.exe" "C:/Users/username")
> 
> I think it should open the HOME folder,
> but it actually opened "C:/Users/username/Documents".

Try

  (start-process "Explorer" nil "explorer.exe" "C:\\Users\\username")

> When I use shell-mode or eshell, explorer works as expected.

How exactly do you "use shell-mode or eshell" to start the Explorer?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#66514; Package emacs. (Fri, 13 Oct 2023 13:17:01 GMT) Full text and rfc822 format available.

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

From: Shynur Xie <one.last.kiss <at> outlook.com>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: "66514 <at> debbugs.gnu.org" <66514 <at> debbugs.gnu.org>
Subject: Re: bug#66514: start-process explorer.exe open wrong directory
Date: Fri, 13 Oct 2023 13:15:49 +0000
> Try
> (start-process "Explorer" nil "explorer.exe" "C:\\Users\\username")

Thanks for your help!  This expression works perfectly.
It seems that the forward slash is for the explorer to receive
arguments.

>> When I use shell-mode or eshell, explorer works as expected.
> How exactly do you "use shell-mode or eshell" to start the Explorer?

This is a faulty memory, and when I wrote the bug report, I tested
only the 'reproduce' section.  My mistake.
The bug can now be closed; it's more about 'explorer.exe' rather
than Emacs.



Reply sent to Eli Zaretskii <eliz <at> gnu.org>:
You have taken responsibility. (Fri, 13 Oct 2023 15:19:01 GMT) Full text and rfc822 format available.

Notification sent to Shynur Xie <one.last.kiss <at> outlook.com>:
bug acknowledged by developer. (Fri, 13 Oct 2023 15:19:01 GMT) Full text and rfc822 format available.

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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Shynur Xie <one.last.kiss <at> outlook.com>
Cc: 66514-done <at> debbugs.gnu.org
Subject: Re: bug#66514: start-process explorer.exe open wrong directory
Date: Fri, 13 Oct 2023 18:18:04 +0300
> From: Shynur Xie <one.last.kiss <at> outlook.com>
> CC: "66514 <at> debbugs.gnu.org" <66514 <at> debbugs.gnu.org>
> Date: Fri, 13 Oct 2023 13:15:49 +0000
> msip_labels:
> 
> > Try
> > (start-process "Explorer" nil "explorer.exe" "C:\\Users\\username")
> 
> Thanks for your help!  This expression works perfectly.
> It seems that the forward slash is for the explorer to receive
> arguments.

Yes, MS-Windows programs frequently treat the forward slash as the
option character, instead of the dash.

> >> When I use shell-mode or eshell, explorer works as expected.
> > How exactly do you "use shell-mode or eshell" to start the Explorer?
> 
> This is a faulty memory, and when I wrote the bug report, I tested
> only the 'reproduce' section.  My mistake.
> The bug can now be closed; it's more about 'explorer.exe' rather
> than Emacs.

Done, thanks.




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

This bug report was last modified 1 year and 221 days ago.

Previous Next


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