"T_BAD_TN3270_URL": T_BAD_ED2K_URL (I guess you've got the picture) "T_TN3270_PROG": T_ED2K_PROG, "ed2k program", (or whatever that is in your language), behind snip register_option_char("network_program_ed2k", TEXT(T_ED2K_PROG),NULL,2) -snap snip -snapĪdd to options_register.c behind telnet and tn3270: (Probably this will work for the usual links and/or elinks, too)Īdd to url.c behind the lines about telnet and tn3270: gconftool-2 -u /desktop/gnome/url-handlers/ed2k -recursive-unset.Uninstalling this protocol handler is similarly simple: Replace " /usr/bin/ed2k" above with the path and name of the ed2k executable on your system.
![os x shell script double click os x shell script double click](https://i.stack.imgur.com/sUYJi.png)
gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/needs_terminal false.gconftool-2 -t bool -s /desktop/gnome/url-handlers/ed2k/enabled true.gconftool-2 -t string -s /desktop/gnome/url-handlers/ed2k/command "/usr/bin/ed2k \"%s\"".NOTE2: If after clicking OK on the security warning the link is still not being sent to aMule, just right-click on the ed2k link and tell Konqueror to open it in a new window/tab.Įxecute the following three commands to create the appropriate gconf keys: it is just warning you that the link is being sent to an external application. If the search was successful, create a file named like ed2k.protocol in the mentioned directory: If you're not sure about the directory where KDE is installed you can even put / as search path.
![os x shell script double click os x shell script double click](https://i.stack.imgur.com/Uce1M.png)
To search run `find /usr -name "*.protocol"` or `find /opt -name "*.protocol"`. You can find this directory by searching for file names ending with. To have ed2k links work from Konqueror you have to add a protocol-file to the directory with the other protocol-files. In the "Open with another application" field enter /path/to/ed2k In Opera go to Tools -> Preferences -> Programms -> Add. This is necessary so that Iceweasel asks you which application you want to use to open the link.
#OS X SHELL SCRIPT DOUBLE CLICK INSTALL#
Setup Firefox as already explained and install the FireMule module for Firefox. Choose /usr/local/bin/ed2k and it should work. After clicking over an ed2k link, Firefox should ask which app you want to use to open the link.
![os x shell script double click os x shell script double click](https://www.servermania.com/kb/wp-content/uploads/2019/05/Screen-Shot-2019-05-02-at-4.05.41-PM.png)
Pref("2k", false) Īfter saving changes, restart the browser. Add yet another line to the all.jsfile:.Substitute the "/path/to/ed2k" string with the program's real path. Add the following lines at the end of the file:.Having root privileges, open the file /usr/share/firefox/greprefs/all.js (or /usr/local/share/firefox/greprefs/all.js) in a text editor.Right click on the list, select New, then Boolean insert 2k as Preference Name and false as ValueĪfter that, click over an ed2k link, and Firefox should ask which app you want to use to open the link.Now another right click, select New and String insert 2k as Preference Name and /path/to/ed2k (path to where the file is installed on your system) as Value.įor Ubuntu Lucid users, you should set the Value to just "ed2k" instead of "/usr/bin/ed2k".įor Firefox 3 and higher only, you should also:.Right click on the list, select New, then Boolean insert 2k as Preference Name and true as Value.
![os x shell script double click os x shell script double click](https://www.oreilly.com/library/view/mac-os-x/9780596520625/httpatomoreillycomsourceoreillyimages207017.png)
Handling ED2k links in Firefox can be configured in two ways: either for an individual user, or for all users of the computer. To know where amule and ed2k are located, just do which amule and which ed2k in console! If you have installed Debian or Ubuntu you must install " amule-utils" (and " amule-ed2k" only for Debian) to get this way working. As an exception, it is known that SuSE packages install it in /usr/local/bin/ed2k.