From 00449e8153f6a13c86d5a982654932ffd9848a5c Mon Sep 17 00:00:00 2001 From: Peter Hofmann Date: Mon, 19 Jan 2015 19:24:30 +0100 Subject: Change default download directory to /var/tmp Why? See #13. This commit closes #13. --- README | 9 +++++++-- browser.c | 2 +- 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; -- cgit v1.2.3