On Wed, Jul 26, 2006 at 02:07:41PM +0000, Angus Leeming wrote:

> Enrico Forestieri <[EMAIL PROTECTED]> writes:
> > > Further, if you're correct and /foo/bar causes problems, then why not 
> > > transform such paths to \foo\bar form before spawning lyx.exe?
> 
> > This is what happens on win2k. According to Bo, lyx.exe is hidden on winxp
> > when use either '/' or '\' as a path delimiter.
> 
> So why not combine all the information you've accumulated:
> 
>       wrapper.exe /c cmd.exe [optional path/to/]lyx.exe [options]
> 
> is long-winded but apparently works.
> 
>       wrapper.exe [optional path/to/]lyx.exe [options]
> 
> is nicer for the user does not work on Win2K.
> 
> So why not allow the nice, friendly interface to wrapper.exe, but internally 
> pass in "cmd.exe" to CreateProcess?
> 
> C'mon, guys, there's no need for a general purpose, generic wrapper here. 
> It's 
> perfectly acceptable to use something that's more hard-coded and specific to 
> our own needs here.

Agreed. I think the wrapper should be named lyx.exe and should internally
call the real lyx named lyxc.exe. The wrapper should examine the command
line for options of the form /VAR=val in order to set environment variables
as appropriate and should pass everything else onto lyxc.exe.

-- 
Enrico

Reply via email to