summary refs log tree commit diff stats
path: root/src/common/cfgfiles.c
diff options
context:
space:
mode:
authorTingPing <tngpng@gmail.com>2013-02-16 23:07:18 -0500
committerTingPing <tngpng@gmail.com>2013-02-16 23:07:18 -0500
commit936785d24e21f4c15d4f172dde1155f22e2d82c2 (patch)
treec8ef1bad3590a2937a4aec4c95418f24bf4cbc32 /src/common/cfgfiles.c
parente6d65e400449bd441005c549113891272dbc18b4 (diff)
follow XDG for default download directory
closes #413
Diffstat (limited to 'src/common/cfgfiles.c')
-rw-r--r--src/common/cfgfiles.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/cfgfiles.c b/src/common/cfgfiles.c
index 6b06812b..5c42ff60 100644
--- a/src/common/cfgfiles.c
+++ b/src/common/cfgfiles.c
@@ -754,7 +754,7 @@ load_config (void)
 		snprintf (prefs.hex_dcc_dir, sizeof (prefs.hex_dcc_dir), "%s\\Downloads", out);
 	}
 #else
-	snprintf (prefs.hex_dcc_dir, sizeof (prefs.hex_dcc_dir), "%s/downloads", get_xdir ());
+	strcpy (prefs.hex_dcc_dir, g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD));
 #endif
 	strcpy (prefs.hex_dnsprogram, "host");
 	strcpy (prefs.hex_gui_ulist_doubleclick, "QUERY %s");