File properly-support-x-scheme-handler-magnet-mimetype.patch of Package ktorrent4

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
openSUSE Build Service is sponsored by