Auto-save of Untitled saves to /tmp, which is volatile

Bug #323621 reported by Stephan Sokolow
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
PyRoom
Fix Released
Medium
Florian Heinle

Bug Description

The auto-save functionality uses /tmp as its storage location for documents which haven't been given a filename yet, but many distros (mine included) wipe /tmp on startup. (This meets FHS requirements) This is bad for situations like power outages.

Data which should be preserved across reboots, power loss, system crashes, and the like is supposed to go into /var/tmp.

Revision history for this message
Gergely Janossy (marcabru) wrote :

"The auto-save functionality uses /tmp as its storage location for documents which haven't been given a filename yet"

In my version (pyroom 0.3.2) also for documents with name! E.g. If I save a document as ~/proba.txt , and kill pyroom, there is an autosaved file left in: /tmp/proba.txt_tmp_YE2zAP, and no recovery takes place when I restart pyroom. In fact I did not now where my file is, only from this bugreport.

WOuldn't it a be a better solution if you save the document in the same folder (for untitled files, in the ~), and recovered automatically upon restart?

Revision history for this message
Florian Heinle (tiax) wrote :

Hi,

you're right. Your solution makes more sense than the current way of automatic saving. Gedit etc do it the same way.

We'll implement this.

Changed in pyroom:
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Florian Heinle (tiax) wrote :

Hi,

I'm currently rewriting the autosave mechanism to address this issue

Changed in pyroom:
assignee: nobody → tiax
status: Confirmed → In Progress
Revision history for this message
Florian Heinle (tiax) wrote :

fixed in revno:141

Changed in pyroom:
status: In Progress → Fix Committed
Florian Heinle (tiax)
Changed in pyroom:
milestone: none → 0.4
Revision history for this message
Florian Heinle (tiax) wrote :

fixed in 0.4 release

Changed in pyroom:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.