On 20.02.2015 18:11, Jens Tröger wrote: > Hello, > > I've seen a lot of examples of how to start soffice in server mode, and > then how to connect to it. I'm using PyUNO and it works. However, I am > unclear on how to close down the connection cleanly, so that I won't > have the "Document Recovery" dialog pop up next time around. (I assume > that something wasn't cleaned up correctly, or else the dialog wouldn't > show?)
that indicates that documents were still open at shutdown time. > I've asked that same questions with short code examples in the forum, to > no avail. Any takers? Help would be greatly appreciated :-) > > https://forum.openoffice.org/en/forum/viewtopic.php?f=25&t=75367 i think the general idea is to first close all open documents (via XClosable::close() - only use XComponent::dispose() if the document does not implement XClosable), and then call XDesktop::terminate() _______________________________________________ LibreOffice mailing list LibreOffice@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice