SHA256
1
0
forked from pool/ktorrent
ktorrent/properly-support-x-scheme-handler-magnet-mimetype.patch
Dominique Leuenberger 6b6399623b Accepting request 284674 from KDE:Extra
Add properly-support-x-scheme-handler-magnet-mimetype.patch, make ktorrent support magnet mimetype outside KDE4

OBS-URL: https://build.opensuse.org/request/show/284674
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ktorrent?expand=0&rev=99
2015-02-12 09:21:38 +00:00

38 lines
1.3 KiB
Diff

commit f090d11e8837d944dedb40f873713abe4e15d4b4
Author: Joris Guisson <joris.guisson@gmail.com>
Date: Sat Nov 8 12:35:09 2014 +0100
Properly support x-scheme-handler/magnet mimetype, and drop old hard-coded magnet.protocol.
Patch from Rex Dieter
Review: 108648
diff --git a/ktorrent/CMakeLists.txt b/ktorrent/CMakeLists.txt
index 3d61cfd..3e64bc1 100644
--- a/ktorrent/CMakeLists.txt
+++ b/ktorrent/CMakeLists.txt
@@ -94,9 +94,5 @@
install(FILES ktorrent.notifyrc DESTINATION ${DATA_INSTALL_DIR}/ktorrent )
install(FILES dhttip DESTINATION ${DATA_INSTALL_DIR}/ktorrent)
-if (NOT ${ENABLE_KIO_MAGNET})
- install(FILES magnet.protocol DESTINATION ${SERVICES_INSTALL_DIR} )
-endif (NOT ${ENABLE_KIO_MAGNET})
-
add_subdirectory(icons)
diff --git a/ktorrent/ktorrent.desktop b/ktorrent/ktorrent.desktop
index d326f63..dff843f 100755
--- a/ktorrent/ktorrent.desktop
+++ b/ktorrent/ktorrent.desktop
@@ -118,7 +118,7 @@ Exec=ktorrent %i -caption "%c" %u
Icon=ktorrent
Type=Application
X-DocPath=ktorrent/index.html
-MimeType=application/x-bittorrent;application/x-torrent;
+MimeType=application/x-bittorrent;application/x-torrent;x-scheme-handler/magnet;
InitialPreference=5
X-DBUS-StartupType=Unique
X-DBUS-ServiceName=org.ktorrent.ktorrent