After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 569825 - file-roller should use TMPDIR or XDG_CACHE_HOME for temporary files
file-roller should use TMPDIR or XDG_CACHE_HOME for temporary files
Status: RESOLVED FIXED
Product: file-roller
Classification: Applications
Component: general
2.24.x
Other All
: Normal normal
: ---
Assigned To: Paolo Bacchilega
file-roller-maint
Depends on:
Blocks: 523057
 
 
Reported: 2009-01-30 14:15 UTC by Gioele Barabucci
Modified: 2009-10-13 17:33 UTC
See Also:
GNOME target: ---
GNOME version: 2.23/2.24



Description Gioele Barabucci 2009-01-30 14:15:56 UTC
Please describe the problem:
File roller uses ~/.fr-* directories to store temporary files to be previewed.

On systems with little space in $HOME (like public shells or university accounts), these temporary files can make the user exceed its disk quota with a simple preview.

To solve this, File roller should follow the XDG Base Directory specification and store its temporary files in $XDG_CACHE_HOME.

XDG Base Directory specification: http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html

Steps to reproduce:
0. Set XDG_CACHE_HOME to /tmp
1. Set user quota to 10 MB on ~ and unlimited on /tmp
2. Open an archive with big (> 10MB) PDFs stored in /tmp and open one (double-click) one the contained PDF


Actual results:
Disk quota exceeded, PDF cannot be opened. 

Expected results:
The PDF document should be opened without problems. No disk space should be used in $HOME.

Does this happen every time?
Yes

Other information:
Comment 1 Gioele Barabucci 2009-01-30 14:20:43 UTC
TMPDIR is ignored as well.
Comment 2 Paolo Bacchilega 2009-01-31 09:51:17 UTC
file-roller uses the directory with more free space between $(HOME) $(TMPDIR) $(TMP) $(TEMP), and now I have added $XDG_CACHE_HOME.