* lyxpaperview.py - allow arguments for viewers

This commit is contained in:
Pavel Sanda 2023-02-20 23:05:26 +01:00
parent 92178fe457
commit 307498894c

View File

@ -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)