Paul A. Rubin wrote:

> Angus Leeming <[EMAIL PROTECTED]> wrote in
> news:[EMAIL PROTECTED]:
> 
>> I wonder if the problem lies with LyX trying to read a file with
>> this strange combination of Windows (C: prefix) and unix ('/'
>> rather than '\') notation?
>> 
>> Can you try and visualise the file happy.jpg within LyX. Presumably
>> it will fail with file not found.
> 
> Correct.  This happened both with the default conversion script and
> after I added a JPG->PPM converter.
> 
>> Could you then look in the temporary
>> directory and see if it is actually there.
> 
> The temp directory was empty throughout.

Could you augment conversionDefault.sh please. I want to establish 
whether it is invoked successfully by LyX.

.... Ahhh. I see one problem with the script...

This:
FILE=`echo $2 | cut -d ':' -f 2`
will return 'C', not 'your/file.ppm' from the string 
'ppm:C:your/file.ppm'.

Let's use 
FILE=`echo $2 | sed ',^[^:]*:,,'`
instead.

Could you replace your copy of convertDefault.sh with the one 
attached. Running LyX from the command line should produce some 
additional messages if the script is invoked successfully.

-- 
Angus

Attachment: convertDefault.sh
Description: application/shellscript

Reply via email to