Here’s something that shouldn’t happen.
- User reads her email with a web-based email service, using Firefox.
- User opens an MS Word document (something.doc) that someone sent her via email. OpenOffice opens it.
- User changes document and saves it with a new filename (something_changed.doc). OpenOffice offers to save it next to the existing document, which Firefox put in /tmp, because Firefox thinks it’s just saving a temporary copy so it can tell OpenOffice to view it. User says OK, because what does the User know about “tmp”?
- User shuts the computer down.
- User starts the computer.
- User tries to find the document. After much difficulty, she finds /tmp, but the document has been deleted (because it’s deleted at startup, though the user doesn’t know this).
This happens in Ubuntu Dapper and Edgy at least. I think that Firefox in Ubuntu Breezy used to save the temporary documents to the Desktop, instead of /tmp, which was also annoying.
I’m not sure what the best general solution is, but I can imagine that some of these might help:
- Temporary documents could be read-only.
- GtkFileChooser could warn about saving documents in /tmp, and/or not allow /tmp to be shown when saving documents.