[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: w32-shell-execute and Cygwin
From: |
H. Dieter Wilhelm |
Subject: |
Re: w32-shell-execute and Cygwin |
Date: |
Tue, 21 Apr 2020 10:53:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/26.3 (gnu/linux) |
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