# HG changeset patch # User Jeff Hammel # Date 1401738051 25200 # Node ID d586ea538d36d74a28fb350aab7f8fdd1708b41d # Parent 5e8d3f68a997a4705298463c896f2c85dd6d2d63# Parent 6f48a3e5ab41907841714dfa345bb8546765e627 merge diff -r 6f48a3e5ab41 -r d586ea538d36 python/gview.py --- a/python/gview.py Mon Jun 02 11:25:31 2014 -0700 +++ b/python/gview.py Mon Jun 02 12:40:51 2014 -0700 @@ -10,6 +10,7 @@ # imports import argparse import os +import shlex import subprocess import sys import tempfile @@ -28,7 +29,7 @@ self.add_argument('-e', '--program', dest='program', default='fdp', help="GraphViz program to invoke [DEFAULT: %(default)s]") - self.add_argument('-v', '--view', dest='viewer', default='feh', + self.add_argument('-v', '--view', dest='viewer', default='feh -F', help="viewer") @@ -52,7 +53,8 @@ try: if options.viewer: - subprocess.call([options.viewer, output]) + viewer = shlex.split(options.viewer) + subprocess.call(viewer + [output]) finally: if not options.output: os.remove(output)