Paul A. Rubin wrote:
> C:\LyX\Documents>sh C:/LyX/lyx/share/lyx/scripts/convertDefault.sh
> jpg:C:/LyX/Documents/happy.jpg ppm:C:/LyX/Documents/happy.ppm
>
> works fine. (I'm assuming that ${PATH_TO} was shorthand for
> inserting the path, as opposed to PATH_TO literally being an
> exported environment
> variable. Right?)
Right.
So the tool works fine when run by hand. Hmm.
Refering to your original error message:
> sh C:/LyX/lyx/share/lyx/scripts/convertDefault.sh
jpg:C:/LyX/Documents/h
> appy.jpg ppm:C:/LyX/lyx/tmp/lyx_tmpdir2168a01168/happy2168a01168.ppm
> Image conversion failed.
> Unable to find converted file!
So, what happens if
1. You remove any existing temporary directories C:/LyX/lyx/tmp/*
2. start up lyx and create a new file, simply to create the temporary
directory C:/LyX/lyx/tmp/lyx_tmpdir_some_random_number
3. from the command line try:
sh C:/LyX/lyx/share/lyx/scripts/convertDefault.sh
jpg:C:/LyX/Documents/happy.jpg
ppm:C:/LyX/lyx/tmp/lyx_tmpdir_some_random_number/happy.ppm
Ie, we're checking that we can actually write to this directory after
all.
Just a second...
Is your shell executable called 'sh' or 'sh.exe'? Can you invoke it
as plain 'sh' or must that be 'sh.exe'?
I ask because:
1. I'm an ignorant son of a gun.
2. LyX hard codes it as 'sh'.
--
Angus