> Yes I tried this, and it definitely picks the correct file now, but it didnt > work. I realized > the problem after some sleep statements and printfs. It's that the file > /tmp/elinks*.png > is empty. So when the external process starts, it tries to read the empty > file and > complains. So it seems the download process is getting botched (it works if I > use the > save button). I would appreciate any further pointers you may have on this.
Ok, I found the reason the file was empty (or sometimes didnt exist (not sure of this)). I was using "cygstart %" as my application handler, and cygstart runs in the background by default and elinks thinks it's done so it removes the file (not sure why the file would be empty though). In any case I just made the handler "cygstart -w %" and it works fine. Another thing I did since cygstart handles cygwin-style path names is just #undef HAVE_CYGWIN_CONV_TO_FULL_WIN32_PATH in src/session/download.c. (Actually I did it in config.h after configure but then had to remove the config.h dependency from all-recursive in Makefile so it doesnt regenerate). Anyway, I'm happy! Thanks for the help. saurabh _________________________________________________________________ Share your memories online with anyone you want. http://www.microsoft.com/middleeast/windows/windowslive/products/photos-share.aspx?tab=1 _______________________________________________ elinks-users mailing list elinks-users@linuxfromscratch.org http://linuxfromscratch.org/mailman/listinfo/elinks-users