Fix application launch for PDFDoc.
svn: r9516
This commit is contained in:
parent
4860b1e422
commit
a579d61dbc
@ -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>
|
2007-12-15 Brian Matherly <brian@gramps-project.org>
|
||||||
* src/ReportBase/_GraphvizReportDialog.py: Add generic Graphviz options.
|
* src/ReportBase/_GraphvizReportDialog.py: Add generic Graphviz options.
|
||||||
* src/ReportBase/_BareReportDialog.py: Allow dialogs to add options.
|
* src/ReportBase/_BareReportDialog.py: Allow dialogs to add options.
|
||||||
|
@ -125,8 +125,7 @@ class PdfDoc(CairoDoc):
|
|||||||
# load the result into an external viewer
|
# load the result into an external viewer
|
||||||
if self.print_req:
|
if self.print_req:
|
||||||
app = Mime.get_application('application/pdf')
|
app = Mime.get_application('application/pdf')
|
||||||
os.environ["FILE"] = self._filename
|
Utils.launch(app[0], self._filename)
|
||||||
os.system('%s "$FILE" &' % app[0])
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------
|
#------------------------------------------------------------------------
|
||||||
#
|
#
|
||||||
|
Loading…
Reference in New Issue
Block a user