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 621117 - When sending an email, temp file is removed if clicking an another item
When sending an email, temp file is removed if clicking an another item
Status: RESOLVED FIXED
Product: f-spot
Classification: Other
Component: General
GIT
Other Linux
: Normal normal
: 0.7.0
Assigned To: F-spot maintainers
F-spot maintainers
Depends on:
Blocks:
 
 
Reported: 2010-06-09 14:29 UTC by Didier Roche
Modified: 2010-06-15 10:15 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Didier Roche 2010-06-09 14:29:27 UTC
The big is different from the one which has been fixed in this commit: http://git.gnome.org/browse/f-spot/commit/?h=stable-0.6&id=4641e0b5183778dabcbaa37fce6d3c82dfd1a106
and still present on git head.

The test case is simple:
- In F-Spot: File -> send email
- Now, f-spot creates a temporary jpg-file in /tmp and opens your email agent.
- If you switch back to f-spot and change the perspective (e.g. double-click on another image), f-spot deletes the temporary file and sending mail is not possible anymore

This use case is maybe the main one as people probably want to send multiple email and browsing for the best one.
Do not hesitate if you need more info or tests.
Comment 1 Paul Lange 2010-06-11 22:33:56 UTC
Hey Didier,

I tried to reproduce this but wasn't able to.

I tried what you described:
1. Open F-Spot and select a photo.
2. Click File > Send Mail (mail editor opens, in my case evolution)
3. Go back to F-Spot and select another photo
4. Go back to mail editor and hin "Send"

I sent the mail to myself and it worked fine. 

Could you please check that again with lastest git and if it still occurs describe in smaller steps what you're doing. 
btw. What's your mail client? Possible that evolution handles attachments different from other mail programs.
Comment 2 Didier Roche 2010-06-12 08:40:34 UTC
@Paul: Evolution handle differently than thunderbird on that regard.

As my initial bug report state, just have a look in /tmp:
Before step "3.": you will see a file in /tmp corresponding to the attachement created by f-stop
After your step "3.", no more /tmp file.

This is fine for Evolution as it seems to take a backend but other mail client like thunderbird rely on the file still beeing there.
Comment 3 Ruben Vermeersch 2010-06-14 16:04:09 UTC
I really can't reproduce this (on git master). The temporary file is never deleted for me.

Might even be Thunderbird unlinking it (I use evolution too).

Could you test this again, with latest master?
Comment 4 Didier Roche 2010-06-15 08:48:50 UTC
The last today git head failed to build for me. So, couldn't try.

However, I think I didn't describe well what I meant by "select another photo" (I'm using evolution too, no issue for me, but some of our users are using thunderbird which unlinks it, I guess):

1. Open F-Spot and select a photo.
2. Click File > Send Mail (mail editor opens, in my case evolution)
3. ls /tmp -> you see the temp file
4. Go back to F-Spot and select another photo in *double clicking it*
5. ls /tmp -> no more temp file
Comment 5 Ruben Vermeersch 2010-06-15 09:39:00 UTC
What kind of build failure are you running into? (be sure to re-run autogen.sh in case of problems and/or make clean before building)

I would love to get this fixed for you but the thing is: I cannot reproduce this and there are no code paths in there that would cause the file to be removed by F-Spot (unless I'm missing something).

Temp files stay where they are on my system. Are you sure you are not running into conflicts with a system-installed copy of F-Spot?
Comment 6 Ruben Vermeersch 2010-06-15 10:15:07 UTC
Turns out to be fixed after debugging on IRC.