Mike Scott wrote:

> Per Jessen wrote:
>> Mike Scott wrote:
>> 
>>> I'm wondering why you have the call to createUnoService(), which I
>>> seem to manage without.
>>>
>> 
>> Yes, I noticed that too - you're using a pre-defined
>> object 'StarDesktop' instead.  I'm not much of a wizard when it comes
>> to OO macro writing, I can't explain it.
> 
> Nor me. My code was cribbed from the net and altered slightly. A
> learning exercise. I'm wondering if the createUnoService is what
> causes the "detaching" you see and I don't. 

My code came from roughly the same place :-)

I've found the detaching problem, sorry if I wasn't being
clear.  'soffice' is a shell-script which checks to see if the bin
directory has an 'oosplash.bin', and if so it uses that one.  It's got
something to do with the speed of startup on a GUI - which is 
obviously irrelevant in batch mode.  I've renamed 'oosplash.bin', and
that got rid of the detaching.  Some of the development versions of the
soffice script appear to have an option 'no-oosplash'.

>> I did some tests with running a few "soffice -invisible -display
>> :1.0"
>> in parallel - it doesn't seem to work, they all end up hanging.  I'll
>> probably have to resort to using a lockfile instead.
> 
> If you're resorting to that for a simple conversion I'd say you're
> most likely doing things the wrong way. Have you tried "my" code?

I'll give it a go, but AFAICS, it does exactly what my code does.  The
headless option might work, I'll have to check that, but it's annoying
that it takes twice as long. 

Assuming you're also running this stuff in batch, have you had any luck
with using an already started soffice daemon?  That's how I used to do
it, but after 2.4, it stopped working. 


/Per 

-- 
/Per Jessen, Zürich


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

Reply via email to