View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001803aMuleUtilitiespublic2019-10-14 11:122019-12-02 15:35
Reporternoblem 
Assigned To 
PrioritynormalSeverityminorReproducibilityalways
StatusfeedbackResolutionfixed 
PlatformOSOSXOS VersionCatalina
Product Version2.3.2 
Target Version2.3.3Fixed in Version 
Summary0001803: ed2kHelperScript.app needs to be updated for OSX Catalina
Descriptioned2kHelperScript.app no longer functions in OSX Catalina due to apple dropping support for 32bit applications. ed2kHelperScript.app is essentially compiled apple script, however the binary that's currently in the Git repo only has PPC and 32bit support

Additionally, even if the original apple script is exported as a 64bit binary, it silently fails, which appears to be down to the use of tell application "System Events" to determine the path to ed2k. I suspect this is down to security changes in Catalina, and is easily worked around
Steps To ReproduceAny attempt to download ed2k:// URLs will fail as the helper application (ed2kHelperScript.app) isn't registered
Additional Informationed2kHelperScript.app is basically just compiled AppleScript, the actual source code can be found in the below location and edited via the apple script editor, which can also be used to export a new .app file with the required 64 bit support

aMule.app/Contents/MacOS/ed2kHelperScript.app/Contents/Resources/Scripts/main.scpt

The below code, if exported from the script editor, doesn't require any special privilidges and restores functionality of the helper script (you may need to double click the new .app to register it)

on open location theURL --error reporting shouldReport

    set thePath to POSIX path of ((path to me as text) & "::")
    set ed2kProgram to thePath & "ed2k"
    set theCommand to quoted form of ed2kProgram & " " & quoted form of theURL
    do shell script theCommand
    return

end open location

If exporting the above via the script editor, then the Info.plist in the new .app directory should be replaced with that from the original. Alternatively, the attached applet can be used to replace the original (You can use osadecompile to verify the code), although as it's was exported on Catalina, it only contains 64bit code so it may be better to export on Mojave, which I believe would produce a universal PPC/32bit/64bit binary
TagsNo tags attached.
Fixed in Revision
Operating SystemOSX Catalina
Attached Files? file icon applet [^] (8,648 bytes) 2019-10-14 11:12 [Show Content]
? file icon applet.universal [^] (24,996 bytes) 2019-10-15 13:10

- Relationships

-  Notes
(0003735)
noblem (reporter)
2019-10-15 13:10

There are now two attachments to this bug report, applet is the AppleScript compiled on OSX Catalina, which results in a X86_64 binary. The second attachment was created on Mojave and is a Universal i386/x86_64 binary, so will work on older systems

The version of applet currently in git is a universal binary supporting both ppc and i386, but not x86_64, so doesn't work on Catalina, which is 64bit only. As the new binary lacks ppc support, it won't work on non-intel (i.e. ppc) Macs, although I believed these shipped prior to 2006, so this may not be an issue
(0003736)
noblem (reporter)
2019-10-16 18:41

If anyone is wanting to use the attached applet on Catalina while waiting for something a bit more official, the following should hopefully get you up and running again.

* Download applet from the attachments
* From a finder window, browse to aMule.app in the Applications directory, right click and select "Show package contents"
* Open up the MacOS directory, fine ed2kHelperScript.app, right click and repeat the above
* Drag the downloaded applet file in to the MacOS directory of the ed2kHelperScript bundle
* Go back in finder to the contents of the aMule.app bundle and double click on ed2kHelperScript.app to register the helper, which should hopefully restore the ability to click and download ed2k links from Safari

From command line, you can simply copy applet to /Applications/aMule.app/Contents/MacOS/ed2kHelperScript.app/Contents/MacOS/ and then run the helper app (e.g. /Applications/aMule.app/Contents/MacOS/ed2kHelperScript.app)
(0003745)
GonoszTopi (administrator)
2019-12-02 15:35

Revision 11028 (latest git code at the time of writing) has the applet updated. Please test.

- Issue History
Date Modified Username Field Change
2019-10-14 11:12 noblem New Issue
2019-10-14 11:12 noblem File Added: applet
2019-10-15 13:10 noblem File Added: applet.universal
2019-10-15 13:10 noblem Note Added: 0003735
2019-10-16 18:41 noblem Note Added: 0003736
2019-12-02 15:35 GonoszTopi Note Added: 0003745
2019-12-02 15:35 GonoszTopi Status new => feedback
2019-12-02 15:35 GonoszTopi Resolution open => fixed
2019-12-02 15:35 GonoszTopi Target Version => 2.3.3


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker