Hi,

so far, I always started aqua OOo from the gdb. I tried to run it from the Finder and it works ;-) There is a small difference though. When running OOo from the Finder, the new empty Writer document is opened.

It is because Finder automatically adds process serial number argument to soffice.bin:

pavel 12540 0.0 -3.1 694076 65252 ?? S 10:47AM 0:03.63 /Users/pavel/Applications/AQUA/OpenOffice.org 2.3.app/ Contents/MacOS/soffice.bin -psn_0_95813633

We do not need to save this number, because we can always get it e.g. via

    ProcessSerialNumber PSN;
    GetCurrentProcess(&PSN);
    fprintf(stderr, "highLongOfPSN is %ld\n", PSN.highLongOfPSN);
    fprintf(stderr, "lowLongOfPSN is %ld\n", PSN.lowLongOfPSN);

which results in

highLongOfPSN is 0
lowLongOfPSN is 95813633

So this argument is useless and we can safely ignore it.

Do we want it to behave this way and "mis-use" the PSN added by the Finder for this purpose?

I can imagine that Mac users expect to see the new document opened on start, but for me it is a bit weird, because this is the only platform where empty document is opened.
--
Pavel Janík


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

Reply via email to