summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hofmann <scm@uninformativ.de>2015-01-19 19:24:30 +0100
committerPeter Hofmann <scm@uninformativ.de>2015-01-19 19:24:30 +0100
commit00449e8153f6a13c86d5a982654932ffd9848a5c (patch)
treec4230bcc9e61bfd5d3c5c283948bf268e9fe593b
parentfeb90a26b9326463c339b05bd9aede44840dbb0b (diff)
downloadlariza-00449e8153f6a13c86d5a982654932ffd9848a5c.tar.gz
Change default download directory to /var/tmp
Why? See #13. This commit closes #13.
-rw-r--r--README9
-rw-r--r--browser.c2
2 files changed, 8 insertions, 3 deletions
diff --git a/README b/README
index c716687..8ce095d 100644
--- 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
diff --git a/browser.c b/browser.c
index b6a8d43..e5c8c27 100644
--- 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;