]> git.armaanb.net Git - chorizo.git/commitdiff
Change default download directory to /var/tmp
authorPeter Hofmann <scm@uninformativ.de>
Mon, 19 Jan 2015 18:24:30 +0000 (19:24 +0100)
committerPeter Hofmann <scm@uninformativ.de>
Mon, 19 Jan 2015 18:24:30 +0000 (19:24 +0100)
Why? See #13. This commit closes #13.

README
browser.c

diff --git a/README b/README
index c71668742b319c91a8c8d056fa9c75f6844031b9..8ce095d581277189997e9e500b4c0796f1d801b4 100644 (file)
--- a/README
+++ b/README
@@ -230,8 +230,13 @@ following environment variables:
         pressing the "reload" hotkey for each window.
 
     LARIZA_DOWNLOAD_DIR
-        All downloads are automatically stored in this directory.
-        Defaults to "/tmp".
+        All downloads are automatically stored in this directory. If you
+        want to stick to XDG directories, then you should configure your
+        "xdg-user-dirs" and use this:
+
+            LARIZA_DOWNLOAD_DIR=$(xdg-user-dir DOWNLOAD)
+
+        This variable defaults to "/var/tmp".
 
     LARIZA_FIFO_SUFFIX
         Cooperative instances are implemented using a named pipe in the
index b6a8d43f85b01955ff24b7b1939295de3b5153ad..e5c8c27df0cbcd408501d3d91a04f1c0ab1c0a38 100644 (file)
--- a/browser.c
+++ b/browser.c
@@ -70,7 +70,7 @@ static gboolean cooperative_alone = TRUE;
 static gboolean cooperative_instances = TRUE;
 static int cooperative_pipe_fp = 0;
 static int crash_autoreload_delay = 2;
-static gchar *download_dir = "/tmp";
+static gchar *download_dir = "/var/tmp";
 static Window embed = 0;
 static gchar *fifo_suffix = "main";
 static gdouble global_zoom = 1.0;