View Single Post
Old August 25th, 2006   #11
505
Way Too Much Ubuntu
 
505's Avatar
 
Join Date: May 2006
Location: The Netherlands
Beans: 284
Ubuntu 9.04 Jaunty Jackalope
Re: Torrent Link launching uTorrent possible ?

Yes, it is possible launch the torrent automatically. You need a special script.

Steps to get it:
1. Open a terminal
2. Type
Code:
sudo gedit /usr/bin/utorrent
3. Paste the following text
Code:
#!/bin/sh

cd ~/.wine/drive_c/Program\ Files/utorrent
if [ "$1" != "" ]; then
	var="`echo $1 | sed 's/\//\\\/g'`"
	var="Z:${var}"
	wine utorrent.exe "$var"
else
	wine utorrent.exe
fi
Modify the path to the utorrent directory where needed
4. Save and close Gedit
5. Type
Code:
sudo chmod a+x /usr/bin/utorrent
You can now launch utorrent from anywhere by typing 'utorrent' (no .exe)
To open .torrents automatically from firefox set the utorrent file as the default program.
505 is offline   Reply With Quote