LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories
User Name
Password
LinuxQuestions.org Member Success Stories Just spent four hours configuring your favorite program? Just figured out a Linux problem that has been stumping you for months?
Post your Linux Success Stories here.

Notices


Reply
  Search this Thread
Old 08-07-2014, 10:25 AM   #1
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,681

Rep: Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971Reputation: 7971
Setting Ktorrent to open torrent and magnet links through Chrome


Using Chrome browser on openSUSE, although the Linux version/distro shouldn't matter for this particular little bit of trickery.

When you click a magnet or torrent link on a web page, Chrome will pop up with an xdg-open dialog box. The default (at least on openSUSE), is to use Transmission. But I wanted KTorrent.

Simply edit the /usr/share/applications/defaults.list file. You should see lines similar to:
Code:
application/x-bittorrent=transmission-gtk.desktop
---and----
x-scheme-handler/magnet=transmission-gtk.desktop
Change them to use kde4-ktorrent.desktop. Save the file, and your'e done. The next time xdg-open runs, it will run ktorrent, or whatever you'd put there. And note the "kde4-"...the .desktop file referenced is not in /usr/share/applications, but in /usr/share/applicationskde4...ktorrent.desktop is the file IN that directory.

Want to check and see if what you did worked? Run:
Code:
xdg-mime query default application/x-bittorrent
---and----
xdg-mime query default x-scheme-handler/magnet
..it should return "kde4-ktorrent.desktop".
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
torrent/magnet traffic hhh123 Linux - Server 1 11-08-2013 02:27 PM
LXer: How to make Chromium/ Chrome open magnet links in Linux Mint LXer Syndicated Linux News 0 01-28-2013 12:10 PM
[SOLVED] torrent client + magnet link under Slackware 12.2 igadoter Slackware 5 04-07-2012 08:27 AM
magnet link to torrent prudra Debian 1 03-10-2012 09:00 PM
Not able to open or save .torrent links perevera Linux - Software 1 06-04-2005 06:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General > LinuxQuestions.org Member Success Stories

All times are GMT -5. The time now is 02:46 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration