Comment 8 for bug 15179

Revision history for this message
Eric Feliksik (milouny) wrote :

I think Tero Karvinen's solution of patching gtkFileChooser is excellent:

[quote]
When the "File: Save as" dialog is shown:
1) Check if "Save in folder" is /tmp/ or /var/tmp/
2) If yes, change the "Save in folder" to $HOME
In Evince pdf document viewer, it is already solved like this.

In the highly unlikely (imposible?) case that user wants to store a document under /tmp, he is free to navigate to that directory
[/quote]

If it is found to be objectionable that people using /tmp as working directory have to browse to /tmp every time they save their file: a solution with read-only flag for temporary files can be thought of (gtk-file-chooser will only do /tmp-->$HOME when file is read-only) but this will require patches for all pieces of software creating the file in /tmp.