Downloading torrents from firefox on 64-bit Vista
Posted: Sun Nov 30, 2008 8:51 pm
Hello:
I just switched to Deluge from Azureus, and I want to thank the developers for their excellent work. Azureus does have a couple of neat features lacking in Deluge, but it seems with each new Azureus release things become more clumsy and unreliable, not to mention memory-hungry.
My configuration is this:
* deluged and Deluge web UI running on my dedicated Ubuntu Hardy (8.04) 64-bit seedbox
* deluge GTK client running on my Windows Vista 64-bit laptop, connecting to the daemon on my seedbox
I find and download torrents on my laptop using Firefox 3.x, which unfortunately is only available as a 32-bit application. This created problems when trying to get firefox to launch Deluge with downloaded torrents. When I told Firefox to run C:\Program Files\Deluge\deluge.cmd to open torrent files, it wouldn't work, and would instead pop up a message box titled "StartX" with the message "Failed to run the program, Error267, The directory name is invalid."
I poked around a bit with Process Explorer and found that, long story short, the 32-bit firefox was invoking a 32-bit cmd.exe command processor, which was looking for Deluge in "Program Files (x86)" thanks to the annoying redirection feature in 64-bit versions of Windows. I came up with a fix that involves wrapping deluge.cmd in another batch file, which I call deluge32.cmd:
This simple batch file forces the deluge.cmd script to be processed by the 64-bit cmd.exe, even if it's invoked from 32-bit windows. So, I configured Firefox to open torrent files with my deluge32.cmd script instead, and now it works great.
From my poking around on the forums, it seems there's been trouble with Deluge on 64-bit windows for some time now. I would like to suggest to the developers that the default Windows file association for torrent files should be a wrapper script like the above, otherwise any 32-bit application that attempts to launch a torrent file will have this problem.
I just switched to Deluge from Azureus, and I want to thank the developers for their excellent work. Azureus does have a couple of neat features lacking in Deluge, but it seems with each new Azureus release things become more clumsy and unreliable, not to mention memory-hungry.
My configuration is this:
* deluged and Deluge web UI running on my dedicated Ubuntu Hardy (8.04) 64-bit seedbox
* deluge GTK client running on my Windows Vista 64-bit laptop, connecting to the daemon on my seedbox
I find and download torrents on my laptop using Firefox 3.x, which unfortunately is only available as a 32-bit application. This created problems when trying to get firefox to launch Deluge with downloaded torrents. When I told Firefox to run C:\Program Files\Deluge\deluge.cmd to open torrent files, it wouldn't work, and would instead pop up a message box titled "StartX" with the message "Failed to run the program, Error267, The directory name is invalid."
I poked around a bit with Process Explorer and found that, long story short, the 32-bit firefox was invoking a 32-bit cmd.exe command processor, which was looking for Deluge in "Program Files (x86)" thanks to the annoying redirection feature in 64-bit versions of Windows. I came up with a fix that involves wrapping deluge.cmd in another batch file, which I call deluge32.cmd:
Code: Select all
@echo off
rem Wrapper around deluge.cmd which will ensure the 64-bit command processor is used even if this batch file is invoked with the 32-bit
rem command processor
rem
rem Use with 32-bit firefox on 64-bit windows with 64-bit deluge. Any other use is completely untested
set DELUGEDIR=C:\Program Files\Deluge
%windir%\sysnative\cmd.exe /c "%DELUGEDIR%\deluge.cmd" %*
From my poking around on the forums, it seems there's been trouble with Deluge on 64-bit windows for some time now. I would like to suggest to the developers that the default Windows file association for torrent files should be a wrapper script like the above, otherwise any 32-bit application that attempts to launch a torrent file will have this problem.