Hi Richard, Gale.
With my normal user account, I created a text file "hi.txt" in /var/tmp/,
then rebooted the PC and the file wasn't erased.
Also, I created a directory inside /var/tmp, I've created another text file
with some garbage inside that directory. Then I rebooted the PC, and the
file wasn't erased.
I'm using Ubuntu 11.04 64-bit.
I know that isn't very difficult to make some changes in the config files
to avoid deletions in the /tmp folder on reboots, but many final users that
aren't tech guys will blame Audacity -or Linux- for the lost of their
files. Fixing this will help improve the reputation of Audacity as a great
audio editing software.
Bye!
2011/11/26 Gale Andrews <ga...@au...>
>
> | From Richard Ash <ri...@au...>
> | Sat, 26 Nov 2011 17:23:42 +0000
> | Subject: [Audacity-devel] Audacity using tmp folder in Ubuntu/Debian,
> and recovering from crash/power outages
> > On Sun, 2011-11-20 at 12:06 -0430, Luigino Bracci wrote:
> > > By default, Audacity uses the /tmp folder in Ubuntu and Debian to
> > > store temporal files. But this have a small problem: if the computer
> > > crashes or there is a power outage, the /tmp folder will be deleted
> > > when Linux reboots, and the temporal files are lost forever.
> > >
> > >
> > > I know that there are some ways to prevent Debian/Ubuntu to erase
> > > the /tmp folder, but this generally is something most final users
> > > can't do by themselves. Can be Audacity modified to save their temp
> > > files in the user folder?
> >
> > As pointed out any user can change the default in the preferences,
> > however I have now changed the default (only used on *nix systems
> > anyway) to be a directory in /var/tmp/ which will not be erased on
> > reboot (according to the FHS).
>
> Thanks, Richard. I can see what you mean about /var/tmp/ on:
>
> http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard#Directory_structure
>
> however on testing this on Ubuntu 10.10 in latest HEAD by creating a
> tone, editing it then force quit the computer, /var/tmp/audacity-gale
> and /home/gale/.audacity-data/AutoSave are empty on reboot. So, no
> recovery is offered when restarting Audacity. I've tried it twice.
>
> Avoiding temp deletion or setting the timeout isn't that difficult:
> http://ubuntuforums.org/showthread.php?t=1654497#5 .
>
> Despite what FHS/Ubuntu say, setting the TMPTIME in
> /etc/default/rcS does control deletion on reboot in /var/tmp/ on
> my machine. When I set TMPTIME to -1 (for never delete) or 6 (for
> 6 days) the default Audacity temp folder and AutoSave folder are
> left alone and I can recover.
>
> So if you want to edit the rcS file which will also help with other
> programs that lose data when the computer crashes, just open a
> terminal and type:
>
> sudo gedit /etc/default/rcS
>
> then give your password. Substitute "gedit" for some other editor
> if you prefer.
>
>
>
>
>
> Gale
>
>
> ------------------------------------------------------------------------------
> All the data continuously generated in your IT infrastructure
> contains a definitive record of customers, application performance,
> security threats, fraudulent activity, and more. Splunk takes this
> data and makes sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-novd2d
> _______________________________________________
> audacity-devel mailing list
> aud...@li...
> https://lists.sourceforge.net/lists/listinfo/audacity-devel
>
|