Tuesday, May 30, 2006
Fixing FlashGot for Mac cURL Use
FlashGot is a neat extension for Mozilla, Seamonkey, Firefox, etc. that gives you a lot of help downloading large numbers of links. I downloaded the FlashGot plugin for Seamonkey to make my allofmp3.com experience smoother, and was disappointed to find out that it does not support the Mac's built-in version of cURL as a download manager. Don't get me wrong, cURL is not a download manager - but all I really wanted was the whole list of mp3s that I purchased to download with one click instead of clicking on each one independently.
So I fixed it. The "fix" is a bit of a hack, but it works now.
Simply open up this file in your favorite text editor:
/Applications/SeaMonkey.app/Contents/MacOS/components/flashgotService.js
Note that flashgotService.js may also be in your Mozilla profile instead, but I chose to install it in my application instead.
Find the line that says:
var job="[ -x \"`which 'xterm'`\" ] && CURL_CMD='xterm -e curl' || CURL_CMD='curl'\n";
and change it to:
var job="CURL_CMD='curl'\n";
The problem is that FlashGot was trying to open cURL in an X11 window, which isn't going to work on a Mac unless you have X11 running all of the time and also have the environment set up properly.
You will not get any kind of feedback once you choose something to download. I check to see if something is still running by opening up a terminal window and typing:
ps auxww | grep -i curl
Which will dump out any curl processes currently running.
So I fixed it. The "fix" is a bit of a hack, but it works now.
Simply open up this file in your favorite text editor:
/Applications/SeaMonkey.app/Contents/MacOS/components/flashgotService.js
Note that flashgotService.js may also be in your Mozilla profile instead, but I chose to install it in my application instead.
Find the line that says:
var job="[ -x \"`which 'xterm'`\" ] && CURL_CMD='xterm -e curl' || CURL_CMD='curl'\n";
and change it to:
var job="CURL_CMD='curl'\n";
The problem is that FlashGot was trying to open cURL in an X11 window, which isn't going to work on a Mac unless you have X11 running all of the time and also have the environment set up properly.
You will not get any kind of feedback once you choose something to download. I check to see if something is still running by opening up a terminal window and typing:
ps auxww | grep -i curl
Which will dump out any curl processes currently running.