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(