Comment 6 for bug 1159749

Revision history for this message
Kai Engert (kaie) wrote : Re: deja-dup should use /var/tmp not /tmp

The only place that uses template deja-dup-XXXXXX is in DuplicityJob.vala, which calls DirUtils.make_tmp, which apparently is provided by vala, which is mapped to

http://valadoc.org/#!api=glib-2.0/GLib.DirUtils
"Creates a subdirectory in the preferred directory for temporary files (as returned by get_tmp_dir)"

http://valadoc.org/#!api=glib-2.0/GLib.Environment.get_tmp_dir
"Gets the directory to use for temporary files. This is found from inspecting the environment variables TMPDIR, TMP, and TEMP in that order. If none of those are defined "/tmp" is returned on UNIX and "C:\" on Windows. The encoding of the returned string is system-defined. On Windows, it is always UTF-8. The return value is never null or the empty string."

I assume the calls to DirUtils.make_tmp must be avoided, and deja-dup should set its own path.