[Erp5-report] r13703 - /erp5/trunk/utils/oood/start.py
nobody at svn.erp5.org
nobody at svn.erp5.org
Tue Mar 27 12:53:24 CEST 2007
Author: bartek
Date: Tue Mar 27 12:53:23 2007
New Revision: 13703
URL: http://svn.erp5.org?rev=13703&view=rev
Log:
added a "--top" option to start OpenOffice instances in the foreground (e.g. to set up java environments) (this fixes the previous commit)
Modified:
erp5/trunk/utils/oood/start.py
Modified: erp5/trunk/utils/oood/start.py
URL: http://svn.erp5.org/erp5/trunk/utils/oood/start.py?rev=13703&r1=13702&r2=13703&view=diff
==============================================================================
--- erp5/trunk/utils/oood/start.py (original)
+++ erp5/trunk/utils/oood/start.py Tue Mar 27 12:53:23 2007
@@ -72,19 +72,22 @@
# "'-display :%d' % config.virtual_display_id" argument is not working, that's why we use
# environnment variable. See "man xhost" for more details.
new_context = os.environ
- if not on_top:
- new_context['DISPLAY'] = ':%s' % config.virtual_display_id
- args_and_env = [ BIN # First arg is always the name of the binary software we execute
+ if on_top:
+ args_and_env = [ BIN # First arg is always the name of the binary software we execute
, '-accept=socket,host=%s,port=%d;urp;' % (config.pool_host, instance_port)
, '-env:UserInstallation=$SYSUSERCONFIG/./oood_instance_%d' % i
, new_context
]
- if not on_top:
- args_and_env += [
- '-headless'
+ else:
+ new_context['DISPLAY'] = ':%s' % config.virtual_display_id
+ args_and_env = [ BIN # First arg is always the name of the binary software we execute
+ , '-headless'
, '-nologo'
, '-nodefault'
, '-norestore'
+ , '-accept=socket,host=%s,port=%d;urp;' % (config.pool_host, instance_port)
+ , '-env:UserInstallation=$SYSUSERCONFIG/./oood_instance_%d' % i
+ , new_context
]
pid = os.spawnlpe(os.P_NOWAIT, cmd, *args_and_env)
_l("Listening at %s:%s" % (config.pool_host, instance_port), i, 0)
More information about the Erp5-report
mailing list