Open benwaffle opened 10 years ago
In ubuntu, you can do this by adding a .desktop file to /usr/share/applications. tox-qt.desktop would look like this: https://gist.github.com/ReAzem/9043259 In the Exec line, you can add %U for the friend id, with some flag.
Firefox supports custom urls too: http://kb.mozillazine.org/MimeTypes.rdf
Inside the GUI, we can use this: https://qt-project.org/doc/qt-5.0/qtgui/qdesktopservices.html#url-handlers
I don't think there is a solution for multiple OS.
@sometwo Both programs have different installers for different platforms.
qBitTorrent does it like this on windows: https://github.com/qbittorrent/qBittorrent/blob/c96eff2c155fcbe69cdd1a82faf688fda9b22b11/src/windows/installer.nsi#L109
You can use gconftool, to see the application handling torrents, run this: gconftool -g /desktop/gnome/url-handlers/magnet/command On my system, it will output "deluge '%s'".
Add support for tox: links, so links such as tox:29233DDCFBC084115D707CB37A5F0C2102472D77EE40D11195ACFA1585F0C2423040FC6DC8D4 would open up the QtGUI and popup the add friend dialog