Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
dagwieers committed Aug 30, 2007
1 parent c896179 commit aec7f47
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions unoconv
Original file line number Diff line number Diff line change
Expand Up @@ -361,16 +361,13 @@ class Convertor:
except NoConnectException, e:
try:
error(1, "Warning: failed to connect, trying to launch soffice.bin.")
# oopid = os.spawnvp(os.P_NOWAIT, "ooffice", ["ooffice", "-headless", "-accept=%s" % op.connection]);
# oopid = os.spawnvp(os.P_NOWAIT, "ooffice", ["ooffice", "-nologo", "-nodefault", "-accept=%s" % op.connection]);
oopid = os.spawnvp(os.P_NOWAIT, "soffice.bin", ["soffice.bin", "-nologo", "-nodefault", "-accept=%s" % op.connection]);
oopid = os.spawnvp(os.P_NOWAIT, "soffice.bin", ["soffice.bin", "-nologo", "-nodefault", "-headless", "-accept=%s" % op.connection]);
if not oopid: raise
time.sleep(1)
unocontext = resolver.resolve("uno:%s" % op.connection)
except:
error(1, "Warning: failed to connect, trying to launch soffice.")
# oopid = os.spawnvp(os.P_NOWAIT, "soffice", ["soffice", "-headless", "-accept=%s" % op.connection]);
oopid = os.spawnvp(os.P_NOWAIT, "soffice", ["soffice", "-nologo", "-nodefault", "-accept=%s" % op.connection]);
oopid = os.spawnvp(os.P_NOWAIT, "soffice", ["soffice", "-nologo", "-nodefault", "-headless", "-accept=%s" % op.connection]);
if not oopid: raise
time.sleep(1)
unocontext = resolver.resolve("uno:%s" % op.connection)
Expand Down

0 comments on commit aec7f47

Please sign in to comment.