From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm)
To: Eli Zaretskii <eliz@gnu.org>
Cc: help-gnu-emacs@gnu.org
Subject: Re: w32-shell-execute and Cygwin
Date: Tue, 21 Apr 2020 10:53:42 +0200 [thread overview]
Message-ID: <86d081md7t.fsf@duenenhof-wilhelm.de> (raw)
In-Reply-To: <83sggxfue6.fsf@gnu.org> (Eli Zaretskii's message of "Tue, 21 Apr 2020 05:24:33 +0300")
Eli Zaretskii <eliz@gnu.org> writes:
>> From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm)
>> Cc: help-gnu-emacs@gnu.org
>> Date: Mon, 20 Apr 2020 21:49:48 +0200
>>
>> But now there is the problem that w32-shell-execute seemingly doesn't
>> recognise cygwin paths. (here: "/cygwin/c/...")
>>
>> error "ShellExecute failed: The system cannot find the file..."
>>
>> It seems to me as if w32-shell-execute is not literate for cygwin paths
>> and one needs to normalise them to the Windows standard ("c:/...")?
>
> Yes. There's a function for that already in Emacs:
> cygwin-convert-file-name-to-windows.
Thank you for the hint but I still can't get it to run.
I'm afraid there might be a bug in cygwin's w32-shell-execute because
under system-type = windows-nt (26.3) I'm able to start the following
application (with a space in the path). But under system-type = cygwin
(27.0.50) it isn't finding the exec:
(w32-shell-execute
;; "Open" (concat "\"" (cygwin-convert-file-name-to-windows
;; apdl-ansys-help-program) "\"") )
;; "open" (concat "\"" (cygwin-convert-file-name-to-windows
;; "/cygdrive/c/CAx/App/ANSYS Inc/v201/commonfiles/help/HelpViewer/ANSYSHelpViewer.exe") "\""))
"Open" (concat "\""
"C:\\CAx\\App\\ANSYS Inc\\v201\\commonfiles\\help\\HelpViewer\\ANSYSHelpViewer.exe" "\""))
Thank you
Dieter
--
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany
next prev parent reply other threads:[~2020-04-21 8:53 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-04-20 9:59 w32-shell-execute and Cygwin H. Dieter Wilhelm
2020-04-20 15:12 ` Jakub Jankiewicz
2020-04-20 19:09 ` H. Dieter Wilhelm
2020-04-21 8:27 ` Jakub Jankiewicz
2020-04-20 15:28 ` Eli Zaretskii
2020-04-20 19:49 ` H. Dieter Wilhelm
2020-04-21 2:24 ` Eli Zaretskii
2020-04-21 8:53 ` H. Dieter Wilhelm [this message]
2020-04-21 14:20 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86d081md7t.fsf@duenenhof-wilhelm.de \
--to=dieter@duenenhof-wilhelm.de \
--cc=eliz@gnu.org \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).