[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: w32-shell-execute and Cygwin
From: |
Eli Zaretskii |
Subject: |
Re: w32-shell-execute and Cygwin |
Date: |
Tue, 21 Apr 2020 17:20:49 +0300 |
> From: dieter@duenenhof-wilhelm.de (H. Dieter Wilhelm)
> Cc: help-gnu-emacs@gnu.org
> Date: Tue, 21 Apr 2020 10:53:42 +0200
>
> > 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" "\""))
Actually, I see that w32-shell-execute aleady invokes
cygwin-convert-file-name-to-windows internally, so you don't have to
do that.
Other than that, I'm afraid I cannot help you, sorry. I suggest to
ask this on the Cygwin mailing list.