From 66c665d352a0b2d4929918d7d3e99c36c260c889 Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Thu, 25 Jun 2009 21:06:02 +0100 Subject: [PATCH] More Fixes --- openlp/plugins/presentations/lib/impresscom.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/openlp/plugins/presentations/lib/impresscom.py b/openlp/plugins/presentations/lib/impresscom.py index b5fb63579..cee6c2ae8 100644 --- a/openlp/plugins/presentations/lib/impresscom.py +++ b/openlp/plugins/presentations/lib/impresscom.py @@ -57,15 +57,17 @@ class Openoffice(object): self.createApp() def startOpenoffice(self): - cmd = u'openoffice.org -nologo -norestore -minimized ' + u'"' + u'-accept=socket,host=localhost,port=2002;urp;'+ u'"' + cmd = u'openoffice.org -nologo, -norestore, -minimized, -impress,' + u'"' + u'-accept=socket,host=localhost,port=2002;urp;'+ u'"' retval = subprocess.Popen(cmd, shell=True) self.oopid = retval.pid def checkOoPid(self): procfile = open("/proc/%d/stat" %(self.oopid)) - if procfile.readline().split()[1] == u'(soffice)': - return False - return True + file = procfile.readline().split()[1] + print file + if file == u'(soffice)' or file == u'(openoffice.org)': + return True + return False def createApp(self): try: