Skip to content
This repository has been archived by the owner on Jun 11, 2020. It is now read-only.

Tox URI #92

Open
benwaffle opened this issue Jan 22, 2014 · 3 comments
Open

Tox URI #92

benwaffle opened this issue Jan 22, 2014 · 3 comments

Comments

@benwaffle
Copy link

Add support for tox: links, so links such as tox:29233DDCFBC084115D707CB37A5F0C2102472D77EE40D11195ACFA1585F0C2423040FC6DC8D4 would open up the QtGUI and popup the add friend dialog

@aviau
Copy link
Contributor

aviau commented Feb 17, 2014

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.

@aviau
Copy link
Contributor

aviau commented Feb 17, 2014

@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'".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants
@benwaffle @nurupo @aviau and others