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 342342 - Serpentine creates temp files in home
Serpentine creates temp files in home
Status: RESOLVED FIXED
Product: serpentine
Classification: Deprecated
Component: general
unspecified
Other All
: Normal enhancement
: ---
Assigned To: Serpentine Maint
Serpentine Maint
Depends on: 109950 138699 316527
Blocks:
 
 
Reported: 2006-05-19 12:56 UTC by Vassilis Pandis
Modified: 2006-06-03 00:58 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vassilis Pandis 2006-05-19 12:56:49 UTC
This bug was reported by an Ubuntu user. The original bug report can be found
here : https://launchpad.net/distros/ubuntu/+source/serpentine/+bug/43758

Serpentine creates temporary files in the home directory. This is not ideal. To
begin with, it clutters the user directory. Furthermore, if the home directory
is   mounted over a network, this creates unneccessary network traffic. It would
be nicer if Serpentine used /tmp for temporary files.

Thanks.
Comment 1 Tiago Cogumbreiro 2006-05-20 16:27:32 UTC
Serpentine uses the GConf key '/apps/nautilus-cd-burner/temp_iso_dir' to locate the directory to use as temporary. If the user does not have that key set it uses $TMP[1] directory instead.

See bug #316527 for further issues on this subject.

This looks like a "misconfiguration" somewhere which set the key to $HOME.

[1] - http://www.python.org/doc/2.4/lib/module-tempfile.html#l2h-2181
Comment 2 Victor Osadci (Vic) 2006-05-20 16:43:02 UTC
I see this happening with the '/apps/nautilus-cd-burner/temp_iso_dir' key unset.
Comment 3 Tiago Cogumbreiro 2006-05-20 18:00:05 UTC
One thing I could do is what nautilus-cd-burner does, which is to prefix all files  with a dot making them hidden files. Do you prefer that?

Can you open a terminal and run the 'python' program and then run this two lines:

import tempfile
print tempfile.gettempdir()

Comment 4 Victor Osadci (Vic) 2006-05-20 20:06:03 UTC
If the files are in $HOME, hiding them would only hide the problem. The temp files would still be included in backups, for example; and 700MB is a lot to include in incremental backups.
---

>>> import tempfile
>>> print tempfile.gettempdir()
/tmp
Comment 5 Tiago Cogumbreiro 2006-05-20 20:34:45 UTC
Have you read bug #316527, bug #138699 and bug #109950?

I am going to honour the GConf key. Currently it's being fallbacked to /tmp as appropriate. However one problem is that it's not using the tempfile.gettempdir() function as it should.

What's the value you have on that key?
Comment 6 Victor Osadci (Vic) 2006-05-21 10:44:05 UTC
Do you mean the '/apps/nautilus-cd-burner/temp_iso_dir' key ?
--
$ gconftool-2 --get /apps/nautilus-cd-burner/temp_iso_dir

--
As you can see, it is blank
Comment 7 Tiago Cogumbreiro 2006-05-21 15:47:46 UTC
OK, the temporary directory algorithm is currently suboptimal, i'm going to fix it. Thanks for your bug report, which emphatizes the problem.
Comment 8 Tiago Cogumbreiro 2006-06-03 00:58:01 UTC
Fixed in the development version. The fix will be available in the next major release. Thank you for your bug report.