After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 432084 - Transient files confuse gThumb
Transient files confuse gThumb
Status: RESOLVED FIXED
Product: gthumb
Classification: Other
Component: general
2.10.x
Other Linux
: Normal normal
: ---
Assigned To: Paolo Bacchilega
Paolo Bacchilega
Depends on:
Blocks:
 
 
Reported: 2007-04-21 21:39 UTC by Michael Chudobiak
Modified: 2007-04-23 12:06 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
screenshot showing transient files reported as folders (231.76 KB, image/png)
2007-04-21 21:39 UTC, Michael Chudobiak
  Details
Don't assume that (path_is_file == FALSE) is a directory. (559 bytes, patch)
2007-04-23 10:34 UTC, manuel braga
none Details | Review

Description Michael Chudobiak 2007-04-21 21:39:19 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
Comment 1 Michael Chudobiak 2007-04-21 21:39:53 UTC
Created attachment 86761 [details]
screenshot showing transient files reported as folders
Comment 2 Michael Chudobiak 2007-04-21 21:42:12 UTC
The sample RAW files will be available in a few minutes at http://www.avtechpulse.com/downloads/RAW.zip.

- Mike
Comment 3 Michael Chudobiak 2007-04-21 21:43:38 UTC
Note - run

rm -rf ~/.thumbnails/; rm -rf ~/.gnome2/gthumb/remote_cache/;

before trying to reproduce these effects.


- Mike
Comment 4 manuel braga 2007-04-23 10:34:23 UTC
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.
Comment 5 Michael Chudobiak 2007-04-23 12:06:20 UTC
Thank you Manuel!

Patch committed to svn rev 1610.

- Mike