help-gnu-emacs
[Top][All Lists]
Advanced

[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: Mon, 20 Apr 2020 21:49:48 +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)
>> Date: Mon, 20 Apr 2020 11:59:32 +0200
>> 
>> Under windows-nt I'm using w32-shell-execute to start a Windows10
>> program.  This isn't working for Emacs-26.3 in a cygwin terminal because
>> w32-shell-execute is not bound.
>> 
>> Do you know a cygwin alternative for w32-shell-execute?  I guess
>> start-process will do but I don't need a subprocess for this independent
>> application.
>
> Can't you use the Cygwin/w32 build of Emacs, i.e. a Cygwin build which
> uses MS-Windows native GUI widgets?  That build does support
> w32-shell-execute function.

Installed on cygwin the emacs-w32.exe version, do you mean that?  This
Emacs built (version emacs-27.0.90) is knowing w32-shell-execute. :-)

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:/...")?

Thank you Eli

  Dieter
-- 
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany



reply via email to

[Prev in Thread] Current Thread [Next in Thread]