Package: amule
Version: 2.3.1-10
Severity: normal
Tags: patch

`amule` should register itself as ed2k protocol handler. 

Due to lack of protocol registration clicking on "ed2k://" link lead
to the following error in `iceweasel`:

###########
 The address wasn't understood

 Iceweasel doesn't know how to open this address, because the protocol
 (ed2k) isn't associated with any program.
        
 You might need to install other software to open this address.
###########

The same happens on some web-sites on automatic redirection to ed2k://
URLs.

To reproduce:

`xdg-open 
'ed2k://|file|gpl-3.0%20license.txt|35147|E476F0C4393B4FA2388FDC7B3647FFF4|/'`

    "Failed to open URI ... the specified location is not supported".

To fix the issue it is enough to modify "amule.desktop" file as follows:

     --- a/amule.desktop
     +++ b/amule.desktop
     @@ -1,10 +1,11 @@
      [Desktop Entry]
      Name=aMule
     -Exec=amule
     +Exec=amule %u
      Icon=amule
      Terminal=false
      Type=Application
      Categories=Network;P2P;
      Comment=A client for the eD2k network
      Comment[fr]=Un client pour le réseau eD2k
      Comment[tr]=eD2k ağı için istemci
     +MimeType=x-scheme-handler/ed2k;

Then (assuming `amule` is already running) the above xdg-open command
will return something like:

     2013-04-16 03:24:54: Initialising aMule 2.3.1 compiled with wxGTK2 v2.8.12
     2013-04-16 03:24:55: Checking if there is an instance already running...
    !2013-04-16 03:24:55: There is an instance of aMule already running
     2013-04-16 03:24:55: (lock file: /home/brain/.aMule/muleLock)
     2013-04-16 03:24:55: passed 1 link to it, finished

Thanks.

Regards,
 Dmitry Smirnov
 GPG key : 4096R/53968D1B


--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to