Enable open command with option, e.g. "evince -f"

main
jgrizou 12 years ago
parent 49bdd93019
commit 073d03e2fb

@ -29,7 +29,9 @@ def command(args):
with_command = config().open_cmd with_command = config().open_cmd
try: try:
filepath = paper.get_document_path() filepath = paper.get_document_path()
subprocess.Popen([with_command, filepath]) cmd = with_command.split()
cmd.append(filepath)
subprocess.Popen(cmd)
ui.print_('{} opened.'.format(color.dye(filepath, color.filepath))) ui.print_('{} opened.'.format(color.dye(filepath, color.filepath)))
except NoDocumentFile: except NoDocumentFile:
ui.error('No document associated with the entry {}.'.format( ui.error('No document associated with the entry {}.'.format(

Loading…
Cancel
Save