Announcement

Collapse
No announcement yet.

Konqueror - How do I associate magnet links with another application?

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Konqueror - How do I associate magnet links with another application?

    Clicking on a magnet link in Konqueror opens ktorrent. I want to change this association so clicking a magnet link calls a shell script, passing the magnet URI (URL?) as an argument. How can this be achieved?

    #2
    Open the "Configure Konqueror" dialog from the menu. On the left hand side, you'll see an entry named "File associations". Select it. I think magnet links should be in the uri" category, but see for yourself. Select the proper entry for magnet links and change the associated program.
    Kubuntu Raring Ringtail x64 w/ Kde 4.10.5

    Multimedia packages for Kubuntu x64 (x264 10bit, mplayer2, Aegisub etc.)
    http://erokawaii.org/?page_id=5181

    My stuff on kde-look.org
    http://kde-look.org/usermanager/sear...ction=contents

    Comment


      #3
      I've tried that, but there is no magnet association anywhere in File Associations, yet somehow Konqueror knows to launch kTorrent when a magnet link is clicked. I tried adding my own magnet setting under the URI category, as you suggested, but I must have configured it wrong, as kTorrent was still launched when I clicked a link.

      Comment


        #4
        I've found this http://lists.debian.org/debian-kde/2.../msg00048.html describing how to add a new protocol. I've copied /usr/share/kde4/services/magnet.protcol to ~/.kde/share/kde4/services/, and the file looks like this:

        [Protocol]
        exec=kio_magnet
        protocol=magnet
        input=none
        output=filesystem
        copyToFile=false
        copyFromFile=false
        listing=Name,Type,Size,
        reading=true
        writing=false
        makedir=false
        deleting=false
        moving=false
        Icon=folder-remote
        #maxInstancesPerHost=2
        maxInstances=10
        #X-DocPath=kioslave/magnet/index.html
        Class=:internet

        How do I modify it to pass the clicked link to ~/bin/magnet.sh?

        Comment

        Working...
        X