Bug 273631 - claims torrent MIME type even if built without torrent support
Summary: claims torrent MIME type even if built without torrent support
Status: RESOLVED FIXED
Alias: None
Product: kget
Classification: Applications
Component: torrent (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: KGet authors
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-19 12:24 UTC by Jonathan Marten
Modified: 2011-05-19 23:25 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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