From 073d03e2fbe1959d24e5fe7339493eca0eb293fb Mon Sep 17 00:00:00 2001 From: jgrizou Date: Thu, 4 Jul 2013 10:55:49 +0200 Subject: [PATCH] Enable open command with option, e.g. "evince -f" --- papers/commands/open_cmd.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/papers/commands/open_cmd.py b/papers/commands/open_cmd.py index c00d4e9..647a16a 100644 --- a/papers/commands/open_cmd.py +++ b/papers/commands/open_cmd.py @@ -29,7 +29,9 @@ def command(args): with_command = config().open_cmd try: 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))) except NoDocumentFile: ui.error('No document associated with the entry {}.'.format(