mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
* lyxpaperview.py - allow arguments for viewers
This commit is contained in:
parent
92178fe457
commit
307498894c
@ -138,7 +138,12 @@ def main(argv):
|
||||
else:
|
||||
viewer = pdfviewer
|
||||
|
||||
subprocess.call([viewer, result])
|
||||
cmdline = viewer.split(" -", 1)
|
||||
|
||||
if len(cmdline) == 1:
|
||||
subprocess.call([viewer, result])
|
||||
elif len(cmdline) == 2:
|
||||
subprocess.call([cmdline[0], "-" + cmdline[1] , result])
|
||||
|
||||
exit(0)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user