Hi Shaun,
Yes that could be one solution too, but I don't know if it works with
gdb. I recommend trying that out though.
It would be nice to have something like this as the final solution,
because then it would be easier later to enhance OOo to use separate
.app(s) for Writer, Impress etc.
Mox
On 4/15/07, Shaun McDonald <[EMAIL PROTECTED]> wrote:
Hi Mox, *,
I'm thinking that rather than using a symlink to the binary we should
create a new small couple of line C program that would call soffice.bin.
I think the key line would be something like:
execve("../program/soffice.bin", argv[], getenv());
in C to replace the symbolic link.
Shaun
On 15 Apr 2007, at 19:47, Mox Soini wrote:
> Hi Michael,
>
> Thanks for testing the patch.
>
> On 4/15/07, Michael Sicotte <[EMAIL PROTECTED]> wrote:
>>
>> On Apr 14, 2007, at 3:23 PM, Mox Soini wrote:
>>
>> > This patch contains fixes to create correct symlink to MacOS -
>> folder.
>> > The Info.plist is adjusted accordingly.
>> > http://www.openoffice.org/nonav/issues/showattachment.cgi/44424/
>> > i73693-aqua-bundle-binary-fix-v2.patch
>> >
>> > Please test, should work correctly. Try both launching the .app
>> from
>> > Finder and using gdb et al.
>>
>> For me, this does not work. I have the following problems:
>>
>> 1. The symlink in the MacOS dir is:
>> soffice -> OpenOffice.org 2.3.app/Contents/MacOS/program/soffice.bin
>> and the program does not launch from the finder.
>
> So it seems the symlinking code that cloph provided originally is not
> working in a way that I though it would. *sigh*
>
>> 2. If I change the symlink to:
>> soffice -> program/soffice.bin
>> the program will launch from the finder - but gdb will not run.
>
> Yes, this was what I wanted to happen. If this does not work with GDB,
> then there is probably no other alternative than to have the original
> binary in the MacOS folder, resulting in having to move all the
> OOo-specific folders one level upward.
>
> As Ericb said in a later mail, this is more-or-less same as Pavel's
> script.
>
> This means that the changes in my patch to instsetoo_native -module
> are ok and can be integrated as they are now. (only maybe change
> "soffice" to "soffice.bin", if soffice does not work for some reason
> with gdb)
>
> However, the changes to scp2 -module need to be worked on more. I'll
> leave that work to the more active developers.
>
> Mox
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
___________________________________________________________
Inbox full of spam? Get leading spam protection and 1GB storage with All New
Yahoo! Mail. http://uk.docs.yahoo.com/nowyoucan.html
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
Mox on G
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]