Added patch to support default user download directory (Bastien Nocera)

epel9
Denis Leroy 18 years ago
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;

@ -9,6 +9,7 @@ License: MIT
URL: http://transmission.m0k.org/ URL: http://transmission.m0k.org/
Source0: http://download.m0k.org/transmission/files/transmission-%{version}.tar.gz Source0: http://download.m0k.org/transmission/files/transmission-%{version}.tar.gz
Patch0: transmission-0.71-manpath.patch Patch0: transmission-0.71-manpath.patch
Patch1: transmission-0.81-downloaddir.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: openssl-devel BuildRequires: openssl-devel
@ -27,6 +28,7 @@ back-end.
%prep %prep
%setup -q -c %setup -q -c
%patch0 -p1 -b .manpath %patch0 -p1 -b .manpath
%patch1 -p0 -b .dwnldir
%build %build
@ -70,6 +72,7 @@ update-desktop-database > /dev/null 2>&1 || :
%changelog %changelog
* Wed Sep 12 2007 Denis Leroy <denis@poolshark.org> - 0.82-1 * Wed Sep 12 2007 Denis Leroy <denis@poolshark.org> - 0.82-1
- Update to upstream 0.82, many bug fixes - Update to upstream 0.82, many bug fixes
- Added patch to support default user download directory (Bastien Nocera)
* Sat Aug 25 2007 - Bastien Nocera <bnocera@redhat.com> - 0.81-1 * Sat Aug 25 2007 - Bastien Nocera <bnocera@redhat.com> - 0.81-1
- Update to upstream 0.81 - Update to upstream 0.81

Loading…
Cancel
Save