dgoo2308 / transmisson-remote-gui

Automatically exported from code.google.com/p/transmisson-remote-gui
GNU General Public License v2.0
0 stars 0 forks source link

Open Magnet Links through xdg-open on Freedesktop #521

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
xdg-open is used by applications on Freedesktop platforms to open files or URLs 
with the appropriate application.  xdg-open determines which application should 
be used based on the MimeType configuration in each applications .desktop file. 
 See here 
(http://askubuntu.com/questions/44849/how-to-configure-chrome-to-open-magnet-url
s-with-deluge) for further discussion.

The MimeType line in transgui.desktop should be:

MimeType=application/x-bittorrent;x-scheme-handler/magnet

Moreover, I found that in order to actually have the links passed through in 
this setup, it's also necessary to change the Exec line to:

Exec=/usr/bin/transgui %U

Making these changes to transgui.desktop and running 'sudo 
update-desktop-database' allows me to open magnet links through transgui on my 
Gnome Desktop/Ubuntu system.

Original issue reported on code.google.com by mi...@micahcraig.net on 11 Feb 2012 at 6:34

GoogleCodeExporter commented 9 years ago
Thx for the tip. 
I wrote a /usr/share/applications/transgui.desktop with this content:

-----------

[Desktop Entry]
Name=Transmission Remote GUI
GenericName=Transmission Remote GUI
X-GNOME-FullName=Transmission Remote GUI
Comment=Download and share files over BitTorrent
Exec=<your_transgui_path>/transgui %U
Icon=transmission
Terminal=false
TryExec=<your_transgui_path>/transgui
Type=Application
MimeType=application/x-bittorrent;x-scheme-handler/magnet
Categories=Network;FileTransfer;P2P;GTK;
X-Ubuntu-Gettext-Domain=transmission
X-AppInstall-Keywords=torrent

-------------
Then following this post: 
http://forums.gentoo.org/viewtopic-p-6972562.html?sid=25e59d830c49d4986f55b6bf30
1c2aa6#6972562

I run:

xdg-mime default transgui.desktop x-scheme-handler/magnet

Now i can click on magnet links in chrome and transmission-remote-gui 
(transgui) opens it

I'm using:
-Ubuntu 11.04
-Chrome 17.0.963.78
-transgui 3.2

Original comment by carlos.w...@gmail.com on 12 Mar 2012 at 4:11

GoogleCodeExporter commented 9 years ago
Since I do not distribute the transgui.desktop file, it is better to file a bug 
report regarding transgui packaging for a particular distro.

Original comment by j...@cp-lab.com on 23 Mar 2012 at 3:17