* bug#66514: start-process explorer.exe open wrong directory
@ 2023-10-13 11:40 Shynur Xie
2023-10-13 12:53 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Shynur Xie @ 2023-10-13 11:40 UTC (permalink / raw)
To: 66514
(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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#66514: start-process explorer.exe open wrong directory
2023-10-13 11:40 bug#66514: start-process explorer.exe open wrong directory Shynur Xie
@ 2023-10-13 12:53 ` Eli Zaretskii
2023-10-13 13:15 ` Shynur Xie
0 siblings, 1 reply; 4+ messages in thread
From: Eli Zaretskii @ 2023-10-13 12:53 UTC (permalink / raw)
To: Shynur Xie; +Cc: 66514
> From: Shynur Xie <one.last.kiss@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?
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#66514: start-process explorer.exe open wrong directory
2023-10-13 12:53 ` Eli Zaretskii
@ 2023-10-13 13:15 ` Shynur Xie
2023-10-13 15:18 ` Eli Zaretskii
0 siblings, 1 reply; 4+ messages in thread
From: Shynur Xie @ 2023-10-13 13:15 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: 66514@debbugs.gnu.org
> 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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* bug#66514: start-process explorer.exe open wrong directory
2023-10-13 13:15 ` Shynur Xie
@ 2023-10-13 15:18 ` Eli Zaretskii
0 siblings, 0 replies; 4+ messages in thread
From: Eli Zaretskii @ 2023-10-13 15:18 UTC (permalink / raw)
To: Shynur Xie; +Cc: 66514-done
> From: Shynur Xie <one.last.kiss@outlook.com>
> CC: "66514@debbugs.gnu.org" <66514@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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-10-13 15:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-13 11:40 bug#66514: start-process explorer.exe open wrong directory Shynur Xie
2023-10-13 12:53 ` Eli Zaretskii
2023-10-13 13:15 ` Shynur Xie
2023-10-13 15:18 ` Eli Zaretskii
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).