Ubuntu QA:
BlogBrainstormPackage status
Log in
Ubuntu QA
The Ubuntu community has contributed 22700 ideas, 138270 comments, 2629576 votes
Idea sandbox Idea sandbox
Popular ideas Popular ideas
Ideas in development Ideas in development
Implemented ideas Implemented ideas
Idea #29416: /tmp warnings in gnome save box and nautilus

Written by Sman789 the 21 Mar 12 at 18:43. Related project: Nautilus. Status: New
Rationale
Files downloaded by Firefox when the user clicks 'open' instead of 'save' go to /tmp, where they are deleted after a reboot or after Firefox closes. This is fine, but sometimes editable files such as documents and images get 'opened' and edited, and then saved. Most programs (apart from image viewer) will save the file exactly where it was by default. This would be hard to solve, as every app does things in its own way, but an even more serious problem is much more easily fixed.

Programs often default to saving to the last place a file was opened or saved from, which can lead to files being saved to /tmp almost by accident if another file was opened from there or saved back to it earlier. Users may not be fully aware of this. This means they might actually save new documents or other things they need to these folders without realizing it will vanish the next time they shut down their machine.
Tags: (none)

33
votes
up equal down
Solution #1: Warnings in the GNOME save box and in Nautilus
Written by Sman789 the 21 Mar 12 at 18:43.
As almost all programs use the same GNOME save box, so I propose equipping it with a little drop down warning or a confirmation box when trying to save to /tmp. This would remind/inform users that this is only a temporary folder and is not suitable for saving documents in. It would require their confirmation to proceed.

It may also prompt a cool little realization in the user's head that this is why their opened firefox download history is inaccessible after the app closes, but that's a bit of a side-goal.
-16
votes
up equal down
Solution #2: Don't allow saving user files to /tmp - save in /home or external storage only
Written by turbolad the 26 Mar 12 at 11:29.
Since /home is where the user's files are normally saved, if a file is opened in /tmp and the user edits and saves the file, don't allow saving it to /tmp - simply re-direct the user to save in either /home or external storage devices. Easy!

This method would also help everyone, including newcomers, to avoid accidentally saving the file in the wrong place. If you have spent a long time editing a file and accidentally save it to /tmp it will be deleted soon!

Propose your solution

Attachments
No attachments.


Duplicates


Comments
turbolad wrote on the 25 Mar 12 at 20:07
What wording could be used for telling users that files saved to /tmp are deleted on a regular basis?

Should the user be directed to save the file to their /home directory (folder) instead?

Sman789 wrote on the 27 Mar 12 at 15:28
Something like - "Warning: /tmp is a special system folder and is emptied every time the system is shut down. If you wish to keep your file, you should save it somewhere else, such as in your home folder."

If it was a warning dialogue, it could have the options:

|Save to /tmp| |Choose a different folder|

With the latter selected by default in case the user likes to press enter before they read.


-- Of course, I haven't looked at the wording of existing Ubuntu warnings, so I don't know what writing style they currently use (formal/informal/technical/brief etc). Any message would have to fit in with the existing set of warnings for other things.

turbolad wrote on the 29 Mar 12 at 16:25
@Sman789 Your wording is great!

I'm not having a lucky month with everything! My solution now has minus ratings. :'(

Sman789 wrote on the 3 Apr 12 at 20:38
I suppose we all want to avoid solutions where people are totally prevented from doing something which they might want to do. It's better just to convince them it's a bad idea if we can :)

cheesehead (Brainstorm admin) wrote on the 7 Apr 12 at 23:00
If a helper application cannot discern between a one-time-open directory and the current-working-directory, then that seems like a bug report against the helper application.

If, however, Firefox is simply launching the helper application with the wrong flags, and setting the current working directory to the wrong location, that seems like a bug against Firefox.

turbolad wrote on the 10 Apr 12 at 14:50
By default, the file gets saved into the same directory in which it was opened (which is normal behaviour), in this case /tmp.

This idea suggests warning the user not to save in /tmp to avoid losing their file, even if the user has clicked on "Save" instead of "Save as". This situation could occur in future by other means besides using Firefox, hence the warning message to avoid losing files by accident.

Sepero wrote on the 11 Apr 12 at 13:23
As a developer, I'm trying to think how implementing solution #1 would even be possible. A back ground process could potentially watch the /tmp directory, and if a file was over written, then send a visual alert. The only issue is that the alert would appear after the file had been saved, rather than before.

turbolad wrote on the 11 Apr 12 at 21:15
@Sepero I think the only way this could work is to change the "Save" option itself, so the user is warned when they're about to save a file in /tmp. This is the only method I believe needs to be implemented.


Post your comment