Cannot read linked files
Brought to you by:
ra28145
I am using version 2.12.6 of gscan2pdf on xubuntu 22.04. A symbolic link to a tiff file hangs the user interface when you open it. I see a blank gscan2pdf screen with the progress bar at the bottom, stuck on "Process 1 of 3 (import file - importing page 1 of 1)". After this nothing works until I close gscan2pdf and open it again. Opening the file that is the link target works correctly. This is a recent bug, I have used gscan2pdf for years and I have used it with symbolic linked files without problem until now.
Thanks for the report. I can reproduce this. I think this must have been triggered by a change in the behaviour of the "file" tool, as I haven't changed this part of the code recently.
Indeed, the following patch fixes things for me.