3
소켓으로 연결할 수 있지만 모든 것이 로컬 일 때 파이프 사용이 빠르다고 들었습니다. 그래서 사용해보고 싶었지만 연결을 얻을 수 없습니다. 명명 된 파이프를 사용하여 LibreOffice에 연결하기
나는> soffice --headless --invisible --norestore --nodefault --nolockcheck --nofirstwizard --accept='pipe,name=ooo_pipe;urp;'
와 리브레를 시작하고 작동하지만 수행해야 할 최소한의 파이썬 스크립트입니다
import uno
from com.sun.star.connection import NoConnectException
pipe = 'ooo_pipe'
localContext = uno.getComponentContext()
resolver = localContext.ServiceManager.createInstanceWithContext("com.sun.star.bridge.UnoUrlResolver", localContext)
context = resolver.resolve("uno:pipe,name=%s;urp;StarOffice.ComponentContext" % pipe)
무슨 뜻입니까? 이 스크립트가 무엇을 기대합니까? 대신에 당신은 무엇을 보나요? – subdir