parent
677253adba
commit
b7f9f91e8c
@ -0,0 +1,17 @@
|
|||||||
|
Index: gtk/util.c
|
||||||
|
===================================================================
|
||||||
|
--- gtk/util.c (revision 2629)
|
||||||
|
+++ gtk/util.c (working copy)
|
||||||
|
@@ -319,7 +319,12 @@
|
||||||
|
{
|
||||||
|
static char * wd = NULL;
|
||||||
|
const char * dir = tr_prefs_get( PREF_ID_DIR );
|
||||||
|
+
|
||||||
|
if (NULL == dir) {
|
||||||
|
+#if GLIB_CHECK_VERSION(2, 13, 7)
|
||||||
|
+ dir = g_get_user_special_dir(G_USER_DIRECTORY_DOWNLOAD);
|
||||||
|
+ return dir;
|
||||||
|
+#endif
|
||||||
|
if (NULL == wd)
|
||||||
|
wd = g_get_current_dir();
|
||||||
|
dir = wd;
|
Loading…
Reference in new issue