[Erp5-report] r9185 - /erp5/trunk/utils/ooodoc_server/start.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Sun Aug 13 16:34:44 CEST 2006
Author: bartek
Date: Sun Aug 13 16:34:41 2006
New Revision: 9185
URL: http://svn.erp5.org?rev=9185&view=rev
Log:
more cmdline switches for better startup
Modified:
erp5/trunk/utils/ooodoc_server/start.py
Modified: erp5/trunk/utils/ooodoc_server/start.py
URL: http://svn.erp5.org/erp5/trunk/utils/ooodoc_server/start.py?rev=9185&r1=9184&r2=9185&view=diff
==============================================================================
--- erp5/trunk/utils/ooodoc_server/start.py (original)
+++ erp5/trunk/utils/ooodoc_server/start.py Sun Aug 13 16:34:41 2006
@@ -39,9 +39,12 @@
'''
cmdtpl='%s/soffice'
-argtpl1='-headless'
+arg1='-headless'
argtpl2='-accept=socket,host=localhost,port=%d;urp;'
argtpl3='-env:UserInstallation=$SYSUSERCONFIG/./user_%d'
+arg4='-nologo'
+arg5='-nodefault'
+arg6='-norestore'
#argtpl3='-env:UserInstallation=%s/./user_%d'
def startInstance(i):
@@ -52,12 +55,11 @@
print str(2002+i)
#lib.log('starting OOo for i='+str(i))
cmd=cmdtpl % config.unopath
- arg1=argtpl1
arg2=argtpl2 % (2002+i)
arg3=argtpl3 % i
#arg3=argtpl3 % (config.basedir,i)
print arg3
- pid=os.spawnlp(os.P_NOWAIT,cmd,'soffice',arg1,arg2,arg3)
+ pid=os.spawnlp(os.P_NOWAIT,cmd,'soffice',arg1,arg2,arg3,arg4,arg5,arg6)
pidfile='%s/pid_%d' % (config.basedir,i)
open(pidfile,'w').write(str(pid))
#lib.log('OOo started, pid '+str(pid))
More information about the Erp5-report
mailing list