From 589bfdb0f8f1a28788333bdbdd14449e8d1756d1 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Sun, 30 Nov 2003 05:51:24 +0000 Subject: [PATCH] * src/docgen/OpenOfficeDoc.py (OpenOfficeDoc.close): replace hardcoded "oowriter" with the command found by querying the mime database with the open office document type. Different distributions seem to install OOo with different names (oofice, oowriter, soffice). * src/EventEdit.py (EventEditor.__init__): add translated name to the popdown menu list if isn't already there. Prevents a parital match on other strings * src/PedView.py: add a '*' to the popup menu if the child has children svn: r2405 --- gramps2/src/docgen/OpenOfficeDoc.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/gramps2/src/docgen/OpenOfficeDoc.py b/gramps2/src/docgen/OpenOfficeDoc.py index e37dd23e9..cf725daca 100644 --- a/gramps2/src/docgen/OpenOfficeDoc.py +++ b/gramps2/src/docgen/OpenOfficeDoc.py @@ -354,8 +354,12 @@ class OpenOfficeDoc(BaseDoc.BaseDoc): self._write_meta_file() self._write_zip() if self.print_req: + import grampslib + + apptype = 'application/vnd.sun.xml.writer' + prog = grampslib.default_application_command(apptype) os.environ["FILE"] = self.filename - os.system ('/usr/bin/oowriter "$FILE" &') + os.system ('%s "$FILE" &' % prog) def add_photo(self,name,pos,x_cm,y_cm):