Bug 273631

Summary: claims torrent MIME type even if built without torrent support
Product: [Applications] kget Reporter: Jonathan Marten <jjm>
Component: torrentAssignee: KGet authors <kget>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jonathan Marten 2011-05-19 12:24:39 UTC
Version:           unspecified (using Devel) 
OS:                Linux

Even if KGet is configured and built without BitTorrent support:

-----------------------------------------------------------------------------
-- The following OPTIONAL packages could NOT be located on your system.
-- Consider installing them to enable more features from this software.
-----------------------------------------------------------------------------
   * libktorrent  <http://ktorrent.org>
     Backend Library of KTorrent
     Needed to build KGet bittorrent support.
   * libmms  <http://libmms.sourceforge.net>
     Library to read mms streams
     Needed to build KGet mms support.
-----------------------------------------------------------------------------

it still claims the MIME type application/x-bittorrent in its kget.desktop file.  This means that clicking on a .torrent link in Konqueror downloads the torrent file using KGet, instead of opening the torrent file using KTorrent or another configured torrent client.  This is not a particularly useful thing to do.

The user can work around this, of course, by manually configuring the application priority for this MIME type.  But that should not be necessary.



Reproducible: Always

Steps to Reproduce:
With KTorrent built and installed as above, find a web page with a link to a .torrent file, and click on the link.


Actual Results:  
The torrent file is downloaded via KGet and saved.


Expected Results:  
The torrent file should be opened in KTorrent.
Comment 1 Matthias Fuchs 2011-05-19 23:25:19 UTC
SVN commit 1232810 by mfuchs:

The transfer-plugins can set the mime types they support in their CMakeLists.txt files.

BUG:273631

 M  +4 -1      desktop/CMakeLists.txt  
 D             desktop/kget.desktop  
 A             desktop/kget.desktop.in   desktop/kget.desktop#1232792
 M  +2 -0      transfer-plugins/CMakeLists.txt  
 M  +3 -0      transfer-plugins/bittorrent/CMakeLists.txt  
 M  +3 -0      transfer-plugins/metalink/CMakeLists.txt  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1232810