* 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
This commit is contained in:
parent
d8fc0f4cbf
commit
ea396a1618
@ -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):
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user