aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: amule compiled, amulegui doesn't accept any input (from keyboard)  (Read 2634 times)

ppclover

  • Newbie
  • Karma: 0
  • Offline Offline
  • Posts: 3

hello!

after a long way to compile the amule-cvs on my ibook (yes it works :D) the amulegui makes me feel a little sadly...
amulegui starts but doesn't accept any input from my keyboard an i'm unable to get a focus on the gui by clicking on it.

every key is shown in the terminal (which starts also when i start amulegui from desktop without a treminal before  ?() but never in amulegui.

any suggestions :-)?
Logged

ken

  • Hero Member
  • *****
  • Karma: 4
  • Offline Offline
  • Posts: 825
Re: amule compiled, amulegui doesn't accept any input (from keyboard)
« Reply #1 on: May 13, 2005, 05:44:45 AM »

Hi, ppclover.

In order for a program on the Mac to be a full-fledged application, with proper GUI integration, it must be wrapped in an application package.  The behavior you're seeing is typical of trying to run an un-packaged GUI program from the terminal.

This packaging is done for the monolithic aMule GUI with the aMule.app package, but we haven't provided such a package for amulegui.  You can adapt the aMule.app package for amulegui.  Copy aMule.app to aMuleGUI.app (or whatever you would like to name it).  Copy the amulegui program into the Contents/MacOS subdirectory.  You should probably delete all of the other items from Contents/MacOS, mostly just to save space.  Now, edit all of the other files inside the new aMuleGUI.app and change references to "amule" into "amulegui".  Most important is the CFBundleExecutable key in the Info.plist.  The value of this key names the item in Contents/MacOS which gets run when you run the application.

OK, to save you the trouble, I have created a suitable aMuleGUI.app package and attached it to this post.  Note: there is no amulegui executable in this package, you have to put yours into it.

By the way, as near as I know you are the first person to try running amulegui on the Mac.  :)  Let us know how it works.
Logged