summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorAndras Timar <atimar@suse.com>2012-01-11 19:21:33 +0100
committerAndras Timar <atimar@suse.com>2012-01-11 19:25:45 +0100
commitaab14cb9fbc7d82b804a89e4cc61fb874c8636c8 (patch)
tree06076784fd47291174d9d51811da496191ae5cf4 /scripting
parent8a3b584528e30f346cbab34141ee088eea16020c (diff)
fix prefix of command line switches (-- instead of -)
Diffstat (limited to 'scripting')
-rwxr-xr-xscripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java2
-rw-r--r--scripting/source/pyprov/msgbox.py4
-rwxr-xr-xscripting/source/pyprov/officehelper.py4
3 files changed, 5 insertions, 5 deletions
diff --git a/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java b/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java
index fa42a7be1f1b..d3d7045a79de 100755
--- a/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java
+++ b/scripting/java/org/openoffice/idesupport/localoffice/LocalOfficeImpl.java
@@ -126,7 +126,7 @@ System.out.println("*** LocalOfficeImpl.refreshStorage: DONE");
* Boot straps UNO.
*
* The office has to be started with following string:
- * "-accept=socket,host=localhost,port=<PORT>;urp;StarOffice.ServiceManager"
+ * "--accept=socket,host=localhost,port=<PORT>;urp;StarOffice.ServiceManager"
*
* @param port is a communication port.
*/
diff --git a/scripting/source/pyprov/msgbox.py b/scripting/source/pyprov/msgbox.py
index b276d76ad739..c5c57f2e8ef6 100644
--- a/scripting/source/pyprov/msgbox.py
+++ b/scripting/source/pyprov/msgbox.py
@@ -240,8 +240,8 @@ if __name__ == '__main__':
"com.sun.star.bridge.UnoUrlResolver", localContext )
# connect to the running office
- # OOo has to be launched in listen mode as
- # ./soffice "-accept=socket,host=localhost,port=2002;urp;"
+ # LibO has to be launched in listen mode as
+ # ./soffice "--accept=socket,host=localhost,port=2002;urp;"
ctx = resolver.resolve( "uno:socket,host=localhost,port=2002;urp;StarOffice.ComponentContext" )
myBox = MsgBox(ctx)
myBox.addButton("Yes")
diff --git a/scripting/source/pyprov/officehelper.py b/scripting/source/pyprov/officehelper.py
index 610ac5f9dbe7..84b7cce955a2 100755
--- a/scripting/source/pyprov/officehelper.py
+++ b/scripting/source/pyprov/officehelper.py
@@ -62,8 +62,8 @@ def bootstrap():
random.seed()
sPipeName = "uno" + str(random.random())[2:]
- # Start the office proces, don't check for exit status since an exception is caught anyway if the office terminates unexpectedly.
- cmdArray = (sOffice, "-nologo", "-nodefault", "".join(["-accept=pipe,name=", sPipeName, ";urp;"]))
+ # Start the office process, don't check for exit status since an exception is caught anyway if the office terminates unexpectedly.
+ cmdArray = (sOffice, "--nologo", "--nodefault", "".join(["--accept=pipe,name=", sPipeName, ";urp;"]))
os.spawnv(os.P_NOWAIT, sOffice, cmdArray)
# ---------