From b7f9f91e8c39bd92020096992a066dc7d459b3f9 Mon Sep 17 00:00:00 2001 From: Denis Leroy Date: Wed, 12 Sep 2007 10:45:52 +0000 Subject: [PATCH] Added patch to support default user download directory (Bastien Nocera) --- transmission-0.81-downloaddir.patch | 17 +++++++++++++++++ transmission.spec | 3 +++ 2 files changed, 20 insertions(+) create mode 100644 transmission-0.81-downloaddir.patch diff --git a/transmission-0.81-downloaddir.patch b/transmission-0.81-downloaddir.patch new file mode 100644 index 0000000..73227b4 --- /dev/null +++ b/transmission-0.81-downloaddir.patch @@ -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; diff --git a/transmission.spec b/transmission.spec index 444e85a..8367d6f 100644 --- a/transmission.spec +++ b/transmission.spec @@ -9,6 +9,7 @@ License: MIT URL: http://transmission.m0k.org/ Source0: http://download.m0k.org/transmission/files/transmission-%{version}.tar.gz Patch0: transmission-0.71-manpath.patch +Patch1: transmission-0.81-downloaddir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: openssl-devel @@ -27,6 +28,7 @@ back-end. %prep %setup -q -c %patch0 -p1 -b .manpath +%patch1 -p0 -b .dwnldir %build @@ -70,6 +72,7 @@ update-desktop-database > /dev/null 2>&1 || : %changelog * Wed Sep 12 2007 Denis Leroy - 0.82-1 - Update to upstream 0.82, many bug fixes +- Added patch to support default user download directory (Bastien Nocera) * Sat Aug 25 2007 - Bastien Nocera - 0.81-1 - Update to upstream 0.81