diff --git a/0001-gtk-use-com.transmissionbt.Transmission.-D-Bus-names.patch b/0001-gtk-use-com.transmissionbt.Transmission.-D-Bus-names.patch new file mode 100644 index 0000000..5470e64 --- /dev/null +++ b/0001-gtk-use-com.transmissionbt.Transmission.-D-Bus-names.patch @@ -0,0 +1,27 @@ +From: Will Thompson +Date: Fri, 4 Aug 2017 15:20:07 +0100 +Subject: [PATCH] gtk: use com.transmissionbt.Transmission.* D-Bus names + +Using the com.transmissionbt.Transmission. namespace (with a capital T) +is consistent with the Qt frontend using +com.transmissionbt.Transmission, and with standard D-Bus naming +conventions. +--- + gtk/main.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/gtk/main.c b/gtk/main.c +index a164ab439..9fa2690b5 100644 +--- gtk/main.c ++++ gtk/main.c +@@ -680,7 +680,7 @@ int main(int argc, char** argv) + + /* init the application for the specified config dir */ + stat (cbdata.config_dir, &sb); +- application_id = g_strdup_printf ("com.transmissionbt.transmission_%lu_%lu", (unsigned long)sb.st_dev, (unsigned long)sb.st_ino); ++ application_id = g_strdup_printf ("com.transmissionbt.Transmission._%lu_%lu", (unsigned long)sb.st_dev, (unsigned long)sb.st_ino); + app = gtk_application_new (application_id, G_APPLICATION_HANDLES_OPEN); + g_signal_connect (app, "open", G_CALLBACK (on_open), &cbdata); + g_signal_connect (app, "startup", G_CALLBACK (on_startup), &cbdata); +-- +2.13.3 diff --git a/transmission.spec b/transmission.spec index b339a43..d21a19e 100644 --- a/transmission.spec +++ b/transmission.spec @@ -2,7 +2,7 @@ Name: transmission Version: 2.94 -Release: 5%{?dist} +Release: 6%{?dist} Summary: A lightweight GTK+ BitTorrent client # See COPYING. This licensing situation is... special. License: MIT and GPLv2 @@ -14,6 +14,9 @@ Source1: https://raw.githubusercontent.com/gnome-design-team/gnome-icons/ #Patch0: transmission-2.84-overshoot.patch Patch1: transmission-libsystemd.patch Patch2: transmission-fdlimits.patch +# Fix the DBus name to match the app name for flatpak builds +# https://github.com/transmission/transmission/pull/847 +Patch3: 0001-gtk-use-com.transmissionbt.Transmission.-D-Bus-names.patch BuildRequires: openssl-devel >= 1.1.0 BuildRequires: glib2-devel >= 2.32.0 @@ -224,6 +227,9 @@ EOF %doc %{_mandir}/man1/transmission-qt.* %changelog +* Tue Feb 26 2019 Kalev Lember - 2.94-6 +- Add a patch to fix the DBus name to match the app name for flatpak builds + * Thu Feb 21 2019 Gwyn Ciesla - 2.94-5 - Add appindicator support, BZ 1679345.