After quick testing it seems that the only way to get correct
behaviour (events, gdb) is to have the Info.plist specify binary name
_only_, not path.

So having a path there is not a solution.

Since we don't probably want to have the <name>.app/Contents/MacOS
-folder filled with  OOo files, then a tested and working alternative
is to symlink the binary from elsewhere to MacOS folder.

Something like:
cd <name>.app/Contents/MacOS
ln -s ../program/soffice.bin .
(or whatever the current location of the program -folder is)

I'm not sure if the aqua_ooo.scp is trying to do something like this already.
However, once the .scp is correct, it is enough to define
CFBundleExecutable to "soffice.bin" and everything should work.

I will post updated patch to this effect. Someone else should check
that proper symlink is created into MacOS -folder.

     Mox


On 4/14/07, Mox Soini <[EMAIL PROTECTED]> wrote:
The i73693-aqua-bundle-binary-fix.patch changes this key:
      <key>CFBundleExecutable</key>  <string>%BUNDLEEXECUTABLE</string>

The name of the application is determined with
        <key>CFBundleGetInfoString</key>
        <string>OpenOffice.org %ABOUTBOXPRODUCTVERSION</string>

If the string defined in _CFBundleGetInfoString_ is not shown as
application name, then the Info.plist is somehow BROKEN.

Hacking the _CFBundleExecutable_ for name is WRONG.

When Info.plist is broken, it does not propagate the native events
properly thus causing many problems with gdb et al.

Best Regards,

     Clue Stick

On 4/14/07, eric b <[EMAIL PROTECTED]> wrote:
> Hi Mox,
>
> >
> > The correct way to fix this is in
> > http://www.openoffice.org/nonav/issues/showattachment.cgi/44421/
> > i73693-aqua-bundle-binary-fix.patch
> >
>
> Ok for the versioning issue, thanks !
>
>
>
> >> > However if the bundle isn't produced right then the binary name
> >> > will be used instead.
> >>
> > Yes, the strings were broken, because the versioning was not done for
> > Info.plist in the aquabundle4.diff
> >
>
> After some tries, your patch is not complete : soffice still appears
> on the main menubar.
>
> I modified that and propose a new one :  http://eric.bachard.free.fr/
> mac/i73693/aquabundle5.diff
>
> But continue in this direction is IMHO not the solution :  after some
> tries and a discussion with Michael Sicotte on IRC, it appears we
> probably will be forced to modify the tree.
>
> The reason is (but I can be wrong ) extremely simple : Nor XCode nor
> gdb can be used to debug because the main window does not receive all
> events, and stays in the background.
>
> And all changes we do without change the tree are only hacks. AFAIK,
> only the changes Pavel introduced in his script is the correct solution.
>
> One more time, all tests people are doing are extremely helpfull.
>
> Thanks to reports any feedback !
>
>
> Eric Bachard
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
Mox on G



--
Mox on G

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to