Change back to using named pipes

This commit is contained in:
Raoul Snyman 2016-11-02 00:44:01 +02:00
parent c7750a5f1a
commit 66eb2a63d3
1 changed files with 2 additions and 2 deletions

View File

@ -53,7 +53,7 @@ class LibreOfficeServer(object):
'--minimized',
'--nodefault',
'--nofirststartwizard',
'--accept=socket,port=2002;urp;'
'--accept=pipe,name=openlp_pipe;urp;'
]
self._process = Popen(uno_command)
@ -69,7 +69,7 @@ class LibreOfficeServer(object):
loop = 0
while uno_instance is None and loop < 3:
try:
uno_instance = resolver.resolve('uno:socket,port=2002;urp;StarOffice.ComponentContext')
uno_instance = resolver.resolve('uno:pipe,name=openlp_pipe;urp;StarOffice.ComponentContext')
except Exception as e:
log.warning('Unable to find running instance ')
loop += 1