GNOME Bugzilla – Bug 432084
Transient files confuse gThumb
Last modified: 2007-04-23 12:06:32 UTC
I've modified gThumb to use "dcraw -e" to extract embedded thumbnails from RAW files. (http://cybercom.net/~dcoffin/dcraw/). This requires svn rev 1607 or later. If the RAW file is called DSC_0048.NEF, the extracted thumbnail will be in the same directory and be named DSC_0048.thumb.jpg. gThumb reads the extract thumbnail (DSC_0048.thumb.jpg) into a pixbuf, then deletes the DSC_0048.thumb.jpg file. However, gThumb's file-change monitor becomes very confused, and it shows a FOLDER called "DSC_0048.thumb.jpg" (not a file). The folder is shown until you hit Ctrl+R. I will attach a screenshot showing what I mean, and a link to a zip archive of RAW files that I used. Can someone take a look at this? This is probably directly related to bugs like bug 425094. - Mike
Created attachment 86761 [details] screenshot showing transient files reported as folders
The sample RAW files will be available in a few minutes at http://www.avtechpulse.com/downloads/RAW.zip. - Mike
Note - run rm -rf ~/.thumbnails/; rm -rf ~/.gnome2/gthumb/remote_cache/; before trying to reproduce these effects. - Mike
Created attachment 86833 [details] [review] Don't assume that (path_is_file == FALSE) is a directory. This is not dcraw specific. It happens when the same file is quickly created and deleted. path_is_file returns false for a non existent file.
Thank you Manuel! Patch committed to svn rev 1610. - Mike