[Erp5-report] r41999 nicolas - /erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/application/
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Jan 4 16:21:27 CET 2011
Author: nicolas
Date: Tue Jan 4 16:21:27 2011
New Revision: 41999
URL: http://svn.erp5.org?rev=41999&view=rev
Log:
Cleanup arguments use to deamonize openoffice
Modified:
erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/application/openoffice.py
Modified: erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/application/openoffice.py
URL: http://svn.erp5.org/erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/application/openoffice.py?rev=41999&r1=41998&r2=41999&view=diff
==============================================================================
--- erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/application/openoffice.py [utf8] (original)
+++ erp5/trunk/utils/cloudooo/cloudooo/handler/ooo/application/openoffice.py [utf8] Tue Jan 4 16:21:27 2011
@@ -40,7 +40,7 @@ from cloudooo.utils.utils import logger,
from cloudooo.handler.ooo.utils.utils import waitStartDaemon, \
removeDirectory, waitStopDaemon, \
socketStatus
-
+from cloudooo.handler.ooo.utils import getCleanPythonEnvironment
class OpenOffice(Application):
"""Object to control one OOo Instance and all features instance."""
@@ -136,12 +136,14 @@ class OpenOffice(Application):
'-nodefault',
'-norestore',
'-nofirststartwizard',
- '"-accept=socket,host=%s,port=%d;urp;StarOffice.ComponentContext"' % \
- (self.hostname, self.port),
- '-env:UserInstallation=file://%s' % self.path_user_installation]
+ '-accept=socket,host=%s,port=%d;urp;' % (self.hostname, self.port),
+ '-display',
+ ':%s' % self.display_id,
+ '-env:UserInstallation=file://%s' % self.path_user_installation,
+ ]
# To run the instance OOo is need a environment. So, the "DISPLAY" of Xvfb
# is passed to env and the environment customized is passed to the process
- env = environ.copy()
+ env = getCleanPythonEnvironment()
env["HOME"] = self.path_user_installation
env["TMP"] = self.path_user_installation
env["TMPDIR"] = self.path_user_installation
More information about the Erp5-report
mailing list