Commit 98b7e6b6 authored by Nicolas Delaby's avatar Nicolas Delaby

Cleanup arguments use to deamonize openoffice


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@41999 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent bf06d86d
...@@ -40,7 +40,7 @@ from cloudooo.utils.utils import logger, convertStringToBool ...@@ -40,7 +40,7 @@ from cloudooo.utils.utils import logger, convertStringToBool
from cloudooo.handler.ooo.utils.utils import waitStartDaemon, \ from cloudooo.handler.ooo.utils.utils import waitStartDaemon, \
removeDirectory, waitStopDaemon, \ removeDirectory, waitStopDaemon, \
socketStatus socketStatus
from cloudooo.handler.ooo.utils import getCleanPythonEnvironment
class OpenOffice(Application): class OpenOffice(Application):
"""Object to control one OOo Instance and all features instance.""" """Object to control one OOo Instance and all features instance."""
...@@ -136,12 +136,14 @@ class OpenOffice(Application): ...@@ -136,12 +136,14 @@ class OpenOffice(Application):
'-nodefault', '-nodefault',
'-norestore', '-norestore',
'-nofirststartwizard', '-nofirststartwizard',
'"-accept=socket,host=%s,port=%d;urp;StarOffice.ComponentContext"' % \ '-accept=socket,host=%s,port=%d;urp;' % (self.hostname, self.port),
(self.hostname, self.port), '-display',
'-env:UserInstallation=file://%s' % self.path_user_installation] ':%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 # 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 # 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["HOME"] = self.path_user_installation
env["TMP"] = self.path_user_installation env["TMP"] = self.path_user_installation
env["TMPDIR"] = self.path_user_installation env["TMPDIR"] = self.path_user_installation
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment