Re: [gtk+osx] gtk for a GNU/configure program?
Status: Beta
Brought to you by:
jralls
From: Bob I. <bo...@re...> - 2004-03-06 08:17:01
|
On Mar 6, 2004, at 1:43 AM, Ronald Oussoren wrote: > On 5-mrt-04, at 18:02, Paul Emsley wrote: >> >> So I compile buttons: >> $ gcc `gtk-config --cflags` buttons.c -o buttons `gtk-config --libs` >> >> and run it >> $ ./buttons > > I guess that is the problem, on OSX only binaries in application > bundles have full-featured access to the Window Server. > > What you should do is create a minimal app bundle for the application > and copy the executable into it: > > mkdir -p buttons.app/Contents/MacOS > cp buttons buttons.app/Contents/MacOS/buttons > > I'm not sure if an Info.plist is required, you can copy one from > another application. > > Now run buttons.app/Contents/MacOS/buttons and you should have a > working application. > > Ronald > > P.S. There is an undocumented function that can be used to enable full > access to the window server, someone posted code for that in the > PyObjC patch manager (http://sf.net/projects/pyobjc, and then the > patches tab). What you really should do is just get over it and create the bundles. Please don't use my patch :) If you copy an info.plist from another application, remember to actually change the contents as well... there are a couple keys in there that could confuse launchservices if you had a couple applications with the same info, even if it did seem to work. -bob |