Claus,

At 11:41 18/02/2003 +0100, you wrote:
> I have tried launching with wrapper lyxwin32.exe using Cygwin/XFree86,
> and still I have the same problem: nothing happens, but if I start with
> 'lyx' from an xterm window everything is fine.

So what's the difference between lyx.exe and lyxwin32.exe?
lyxwin32.exe will do the following to ensure a proper environment:

    1) Running all startup scripts, i.e. the system wide /etc/profile
       all script in /etc/profile.d as well as your personal
       $HOME/.profile and your $HOME/.bashrc.
    2) Executes the file /etc/lyxprofile
    3) It starts lyx.exe sending error output into the file /tmp/lyx.out

So any command in any of those files will be executed before calling lyx.
lyxwin32 does not call tr a standard unix command (translate). It seems that
that tr command does not terminate and therefore lyxwin32 can't proceed to
start lyx.exe at the end. So who does call that? SO why does it not exit?
The only one I could find is the line

export HOSTNAME=`hostname | tr '[A-Z]' '[a-z]'`

in /etc/profile (that is the default one, hasn't been changed).
But that doesn't seem to cause problems and hang when I open a
bash window, start XFree86 and xterm or anything else,
just with lyxwin32.exe
The only change I did to /etc/lyxprofile is comment out the 'export HOME=...'
as I've already set it as my Windows env. variable.


> There seem to be two processes started when I type 'start .\lyxwin32.exe'
> from the DOS command window: tr.exe and lyxwin32.exe (both in
d:\cygwin\bin)

So why do you use a DOS window? Try my startlyx.bat file to start Lyx using
lyxwin32.exe! There will be used the run command!
Because 'start .\lyxwin32.exe' is in rynlyx.bat and that batch file is
run from the DOS/Windows environment, no? I am just trying to do whatever
runlyx.bat is doing step-by-step.

startlyx.bat fails in exactly the same way (tr.exe + lyxwin32.exe hang)

In both of these cases, no /tmp/lyx.out is being created at all.

You can start the X server first. Then open a bash window and in that window
enter
    lyxwin32
Watch the screen for output. After that look do
    cat /tmp/lyx.out
to have a look into the error output written by Lyx itself.
This works and starts LyX ok! ??? The output is:

'Command is: |lyx </dev/null 2>/tmp/lyx.out|'

and /tmp/lyx.out is created and empty.

So I don't really understand what is going on??? For what it's worth,
I'm running Win2k+SP3 and have CYGWIN env. set to
'binmode ntsec tty nosmbntsec'
Is there more switches on lyxwin32.exe to get more debugging info?

Regards,
Milos

Reply via email to