Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I would like to add a few url scheme, e.g magnet://, and add a simple mimetype for it. So that I would be able to handle these links within my browser.

Is there any graphic tool I could utilize ?

share|improve this question
    
Not sure if I get this right... you would like to register a default handler for a certain protocol in your browser ? i.e. when you click on e.g. a magnet:// link, your browser would launch a certain app to open that particular url scheme ? –  don_crissti Sep 14 '12 at 1:40
    
@don_crissti yes, and those protocols are not registered like ed2k:// –  warl0ck Sep 14 '12 at 1:57
1  
I guess it's specific to each browser. For Firefox/Chromium registering the default handler is just a formality, as long as the default application registers that mime type. E.g. if I install trasmission-gtk the content of /usr/share/applications/mimeinfo.cache will be updated with x-scheme-handler/magnet=transmission-gtk.desktop; specifically because transmission-gtk.desktop contains this line: MimeType=application/x-bittorrent;x-scheme-handler/magnet;. Then Firefox would ask if I want to open the magnet link with transmission and so would do Chromium (the latter uses xdg-open). –  don_crissti Sep 14 '12 at 2:48
1  
In Firefox it is possible to register the default handler for a specific protocol without having a system-wide-registered application for that url scheme. This is done through about:config > right-click anywhere in the grid, choose New > Boolean > Name: network.protocol-handler.expose.magnet > Value > false. Next time you click on a magnet:// link Firefox will open the "Launch Application" dialog and you can even associate a CLI app. I don't know if that is even possible in Chromium. –  don_crissti Sep 14 '12 at 3:06
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.