Douglas S. J. De Couto wrote: > Hi, > > My goal is to use OOo to run in a server process, with multiple > instances running separately, processing documents driven by a pyUno > script. > > I am trying to get OOo to automatically setup its user installation > files, so that I can create each instance on the fly for soffice when > it runs. I've tried using -headless when starting soffice, as shown > in this message: > > http://api.openoffice.org/servlets/ReadMsg?listName=dev&msgNo=14253 > > e.g.: > > soffice -env:UserInstallation=file:///tmp/xxx -headless > '-accept=socket,host=localhost,port=3051;urp;' > > However, when the user install files do not already exist, office > exits without any error message after creating the directory /tmp/xxx > and populating it with some files. If I run the same command again, > soffice also exits without any error. > > However, if I run _without_ -headless, fill out the registration > screens, exit, and rerun _with_ -headless, soffice runs successfully. > > Any hints on how to get around this? I know I can copy a working user > installation directory, but I want to avoid keeping a template user > installation directory around if possible.
Well, without operating the startup wizard no user installation can be created and so OOo must shut down. As you have specified "-headless" you have told OOo that all dialogs should be closed immediately (that's the meaning of this setting!), so no chance. Currently I don't have a better idea than using a "template" user directory and moving it around (or perhaps unpacking it from a zip file). I see the idea behind this so it might be a good idea to implement a command line switch that creates a user installation if none exists even without operating the dialog, assuming some defaults. Why not taking the combination "-env:UserInstallation=... -headless"? Or "-env:UserInstallation=..." -nowizard? Another idea could be to have an auto response file for the wizard. Ciao, Mathias-- Mathias Bauer - OpenOffice.org Application Framework Project Lead Please reply to the list only, [EMAIL PROTECTED] is a spam sink. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
