Fix application launch for PDFDoc.

svn: r9516
This commit is contained in:
Brian Matherly 2007-12-16 04:17:46 +00:00
parent 4860b1e422
commit a579d61dbc
2 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2007-12-15 Brian Matherly <brian@gramps-project.org>
* src/docgen/PdfDoc.py: Fix application launch.
2007-12-15 Brian Matherly <brian@gramps-project.org>
* src/ReportBase/_GraphvizReportDialog.py: Add generic Graphviz options.
* src/ReportBase/_BareReportDialog.py: Allow dialogs to add options.

View File

@ -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)
#------------------------------------------------------------------------
#