Enable open command with option, e.g. "evince -f"
This commit is contained in:
parent
49bdd93019
commit
073d03e2fb
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user