Package: translate
Version: 0.6-6
Severity: normal
Tags: patch

hello,

translate polutes the home directory as it checks for ~/.translate and
creates this directory if not existent.
it doesn't write to files in that directory at any time, only reads
~/.translate/translate.conf if existent, therefore the directory is
useless.

users who want a local configuration for translate still can create
~/.translate/, they have to create ~/.translate/translate.conf anyway.

i've attached a simple patch to prevent translate from creating this
empty local confdir.

...jonas

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-8-amd64
Locale: LANG=C, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)

Versions of packages translate depends on:
ii  trans-de-en                   1.4-1      A German-English translation dicti

translate recommends no packages.

-- no debconf information
--- /usr/bin/translate  2005-06-16 00:29:41.000000000 +0200
+++ translate   2005-09-07 04:10:41.000000000 +0200
@@ -84,12 +84,12 @@
   echo $OPT "$1" | iconv -f UTF-8
 }
 
-# If there is no $LOCDIR we should create one
-if [ ! -d $LOCDIR ] 
-  then
-    echo -n "creating private folder $LOCDIR... "
-    mkdir $LOCDIR && echo "OK."
-fi
+# Don't create $LOCDIR automatically to prevent homedir polution
+#if [ ! -d $LOCDIR ] 
+#  then
+#    echo -n "creating private folder $LOCDIR... "
+#    mkdir $LOCDIR && echo "OK."
+#fi
 
 # Read configuration file, if any
 if [ -r $GLOBALCONF ]

Reply via email to