I want to use a customized program to handle "ed2k://" links , it already got a "*.desktop" file , but how can I bind it with xdg-open as the default handler ?
Since I don't know the exact mimetype of "ed2k://" links , I had to ask here
Temporary solution
Modify xdg-open to handle "ed2k:%2F%2F" links , source code
Still looking for standard work arounds
Best Answer
The mimetype in question is:
I just tried it.
I installed amule and created a file userapp-amule.desktop in ~/.local/share/applications:
and I also added this line:
to ~/.local/share/applications/mimeapps.list under [Default Applications] and [Added Associations]. I then opened an ed2k link with xdg-open (note the quotes):
and it worked: