diff --git a/ChangeLog b/ChangeLog index e8400271c..7dad12bef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2007-12-15 Brian Matherly + * src/docgen/PdfDoc.py: Fix application launch. + 2007-12-15 Brian Matherly * src/ReportBase/_GraphvizReportDialog.py: Add generic Graphviz options. * src/ReportBase/_BareReportDialog.py: Allow dialogs to add options. diff --git a/src/docgen/PdfDoc.py b/src/docgen/PdfDoc.py index 72d7f49b1..836d62d9c 100644 --- a/src/docgen/PdfDoc.py +++ b/src/docgen/PdfDoc.py @@ -125,8 +125,7 @@ class PdfDoc(CairoDoc): # load the result into an external viewer if self.print_req: app = Mime.get_application('application/pdf') - os.environ["FILE"] = self._filename - os.system('%s "$FILE" &' % app[0]) + Utils.launch(app[0], self._filename) #------------------------------------------------------------------------ #