public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Denis Leroy <denis@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/transmission] epel10: Added patch to support default user download directory (Bastien Nocera)
Date: Mon, 20 Jul 2026 20:36:17 GMT [thread overview]
Message-ID: <178457977757.1.4336733612681531390.rpms-transmission-b7f9f91e8c39@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/transmission
Branch : epel10
Commit : b7f9f91e8c39bd92020096992a066dc7d459b3f9
Author : Denis Leroy <denis@fedoraproject.org>
Date : 2007-09-12T10:45:52+00:00
Stats : +20/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/transmission/c/b7f9f91e8c39bd92020096992a066dc7d459b3f9?branch=epel10
Log:
Added patch to support default user download directory (Bastien Nocera)
---
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 <denis@poolshark.org> - 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 <bnocera@redhat.com> - 0.81-1
- Update to upstream 0.81
reply other threads:[~2026-07-20 20:36 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178457977757.1.4336733612681531390.rpms-transmission-b7f9f91e8c39@fedoraproject.org \
--to=denis@fedoraproject.org \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox