← Back to team overview

desktop-packages team mailing list archive

[Bug 245716] Re: file-roller puts temporary files in the home dir instead of /tmp

 

As for now, File Roller 3.2.1 puts its temp files not in folders like
'~/.fr-a1b2c3', but in '~/.cache/.fr-a1b2c3', so I've reported that as
bug #883628.

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to file-roller in Ubuntu.
https://bugs.launchpad.net/bugs/245716

Title:
  file-roller puts temporary files in the home dir instead of /tmp

Status in File Roller:
  New
Status in “file-roller” package in Ubuntu:
  Triaged

Bug description:
  Steps to reproduce:

  1. Open a tarball with file-roller
  2. Open a file within the archive without explicitly extracting it. (Such as by double clicking the file)
  3. Notice that the file is extracted to a directory ~/.fr-*
  4. Close file-roller. If you used file-roller's GUI to exit, the temporary file(s) and directory are deleted. However, if you kill it via SIGTERM or logout without exiting file-roller (I presume that sends either SIGTERM or SIGHUP), the temp files are left behind.

  There are two problems with this:

  1. file-roller should clean up its temp files on exit, regardless of the exit method (with the obvious exception of SIGKILL, which can't be trapped).
  2. The proper place for temporary files is /tmp. Dotfiles in $HOME are for program settings and the like. In the event that file-roller doesn't clean up its temp files, they just pollute $HOME and waste disk space. However, /tmp is cleaned on boot (or is it in shutdown?), so pollution and wasted disk space is minimized.

To manage notifications about this bug go to:
https://bugs.launchpad.net/file-roller/+bug/245716/+subscriptions