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

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