The way to make aMule handle your ed2k links on your favorite web browser will depend on which web browser you use and which operating system you have installed. So, here's a list of mini-HowTos for each of the most popular web browsers and operating systems.
Have in mind that everywhere on this document, /path/to/ed2k should be replaced with /usr/local/bin/ed2k, /usr/bin/ed2k, c:\Program Files\aMule\ed2k.exe or whatever, depending on your own system's configuration.
As a general idea, in most Linux systems, self-compiled aMules will install the ed2k utility in /usr/local/bin/ed2k, while package-installed aMules will install it in /usr/bin/ed2k. As an exception, it is known that SuSE packages install it in /usr/local/bin/ed2k.
If you have installed Debian or Ubuntu you must install "amule-utils" (and "amule-ed2k" only for Debian) to get this way working.
To know where amule and ed2k are located, just do which amule and which ed2k in console!
Firefox 2 and 3 (or later)
Handling ED2k links in Firefox can be configured in two ways: either for an individual user, or for all users of the computer.
Configuration for a single user
- Insert about:config in the address bar
- Right click on the list, select New, then Boolean; insert network.protocol-handler.external.ed2k as Preference Name and true as Value
- Now another right click, select New and String; insert network.protocol-handler.app.ed2k as Preference Name and /path/to/ed2k (path to where the file is installed on your system) as Value.
For Ubuntu Lucid users, you should set the Value to just "ed2k" instead of "/usr/bin/ed2k".
For Firefox 3 and higher only, you should also:
- Right click on the list, select New, then Boolean; insert network.protocol-handler.expose.ed2k as Preference Name and false as Value
- for ubuntu or debian linux
- Right click on the list, select New, then Boolean; insert network.protocol-handler.warn-external.ed2k as Preference Name and true as Value.
- This is necessary so that Iceweasel asks you which application you want to use to open the link.
After that, click over an ed2k link, and Firefox should ask which app you want to use to open the link. Choose /usr/bin/ed2k and it should work.
System-wide configuration
- Having root privileges, open the file /usr/share/firefox/greprefs/all.js (or /usr/local/share/firefox/greprefs/all.js) in a text editor
- Add the following lines at the end of the file:
// ED2K link handling pref("network.protocol-handler.external.ed2k", true); pref("network.protocol-handler.app.ed2k", "/path/to/ed2k");
Substitute the "/path/to/ed2k" string with the program's real path.
For Firefox 3 and higher only:
- Add yet another line to the all.jsfile:
pref("network.protocol-handler.expose.ed2k", false);
After saving changes, restart the browser. After clicking over an ed2k link, Firefox should ask which app you want to use to open the link. Choose /usr/local/bin/ed2k and it should work.
No comments:
Post a Comment