Commit a244fe57 authored by Gabriel Monnerat's avatar Gabriel Monnerat

change the temporary folder and home to run the OpenOffice.org

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk/utils@40683 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e71c163a
...@@ -37,6 +37,7 @@ from xvfb import xvfb ...@@ -37,6 +37,7 @@ from xvfb import xvfb
from cloudooo.interfaces.lockable import ILockable from cloudooo.interfaces.lockable import ILockable
from cloudooo.utils import logger, waitStartDaemon, removeDirectory, \ from cloudooo.utils import logger, waitStartDaemon, removeDirectory, \
waitStopDaemon, convertStringToBool waitStopDaemon, convertStringToBool
import os
class OpenOffice(Application): class OpenOffice(Application):
...@@ -123,6 +124,9 @@ class OpenOffice(Application): ...@@ -123,6 +124,9 @@ class OpenOffice(Application):
# 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 = environ.copy()
env["HOME"] = self.path_user_installation
env["TMP"] = self.path_user_installation
env["TMPDIR"] = self.path_user_installation
env["DISPLAY"] = ":%s" % self.display_id env["DISPLAY"] = ":%s" % self.display_id
process_started = self._start_process(self.command, env) process_started = self._start_process(self.command, env)
if not process_started: if not process_started:
......
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