According to your answer ...

----- Original Message -----
> >BTW: Inside viewing of ps-pics still doesn't work. The same is true
trying
> >to call "View DVI". In these cases a popup window appears (labeled with
> >'sh') and telling me that this application has an error and will be
closed!
>
> This is indeed strange. It works fine here, but in 1.0.4 as in 1.1.2. For
> inline viewing of ps-pics you need the ghostscript port from my homepage.
> View DVI should work if you have a symbolic link called Xdvi in your path
> which points to windvi (not yap).

... I've spend some time to analyse the problems I have on my system.

One problem is, that although starting a command in background (&) from any
interactive shell will work, that is NOT TRUE from within LyX! I replaced
/bin/sh with an own written wrapper, to get informed about what is passed to
the shell. I was impressed, that every command to be run in background leads
to a windows popup-window, telling me that there goes something wrong within
'Sh'.

So I make another change in src/lyx_cb.C as follows near line 591:

#ifndef __EMX__
  if (!wait)
#ifdef WIN9X
   cmd += " #";
#else
   cmd += " &";
#endif
#else

I replaced the &-sign with an comment-sign and rewrote your script files as
follows:

    === START: external/xdvi =================================
    # we only need the filename, i.e. the last argument!
    # and we have to start in the background, so we're
    # using Windows's start-mechanism!
    while [ $# -gt 1 ]
    do
      shift
    done
    start yap.exe $1
    === END ===================================================
    === START: external/ghostview =============================
    while [ $# -gt 1 ]
    do
      shift
    done
    start c:\\gstools\\gsview\\gsview32 $*
    === END ===================================================

>From this point on, calling 'View dvi file' works fine! Calling 'View ps'
will also start gsview, but (I don't know why yet) the file *.ps_tmp is not
found, i.e. it is not created! Calling 'Update ps' and then 'View ps' works
well!

But: inline viewing of pictures still will not work. I have installed your
gs4.03 as explained and made a link into /apps/lyx112/external/gs. It seems,
that gs isn't called successfully (I got those MS-popup-windows as
described)! Reading src/insets/figinset.C I think, that the mechanism is
based on the LyxServer, isn't it? When debuggung the Lyxserver I get some
(not all) information out of that file, like

    GS[pid#]: error 255 E: 0 0 S: 0 127

Any idea what's wrong with my system?

Have a nice week

Claus

Reply via email to