aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: Fake check on macMule  (Read 2568 times)

pamela

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 1
Fake check on macMule
« on: April 23, 2005, 10:36:51 AM »

Maybe someone did this before, but here is script that enables fake check in macMule:
http://www.chronix.org/projects/scripts/open_url.pl

Just download this file and point custom browser to it's location in macMule preferences (General pane).

Best regards

Jan Gregor
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: Fake check on macMule
« Reply #1 on: April 24, 2005, 09:36:59 AM »

Hi pamela,

Thanks for your contribution.  Unfortunately, you're making things more complicated than necessary.  :)

Apple already provides a utility program to launch things (files, folders, URLs, applications, etc.) from the command line.  Check out "man open".

So, to enable Fake Check one needs only to put "open" (or, to be more secure "/usr/bin/open") in the Custom Browser preferences.  That, like your script, will launch the default browser.  If you want to override the default, you can use "open -a Safari" or "open -a Firefox" or the like.

We should probably just make the default on Mac aMule be User Defined browser with "/usr/bin/open" as the default Custom command.

There was some movement in wxMac to enable it to work with the result of the application browser dialog that aMule provides.  When the user picks an application in that dialog, aMule is given the path to the .app bundle which can't be launched with fork()/exec() which is what wx normally uses to launch commands.  The change in wxMac was going to enable the launching of .app bundles, but it caused problems and is currently being reviewed and held until after wx 2.6.1.

EDITED to say:
  • I was confused.  The application browser dialog I just mentioned is for setting the Video Player application, not the Custom Browser.
  • Also, that change to wxMac remains in current cvs.  So, with that version you can just specify the path to the .app bundle for either the Custom Browser or Video Player.  Unfortunately, there's a bug and you get an error dialog in aMule claiming that it couldn't launch the browser even though it succeeded.
  • Lastly, it seems that "open -a YourFavoriteBrowser" for Custom Browser does NOT override the default browser -- /usr/bin/open always opens URLs with the default browser regardless of any "-a" option on the command line.
Logged