lyxpaperview - fix redirection

Any time pdfviewer process write anything to stderr it's killed,
most probably due to not existing pipe to proper stderr file descriptor.
/dev/null redirection fixes the issue.
This commit is contained in:
Pavel Sanda 2023-02-24 20:44:37 +01:00
parent 17829ee513
commit 52d51fe433

View File

@ -143,7 +143,7 @@ def main(argv):
if len(cmdline) == 1:
subprocess.call([viewer, result])
elif len(cmdline) == 2:
subprocess.Popen([cmdline[0], "-" + cmdline[1] , result])
subprocess.Popen([cmdline[0], "-" + cmdline[1] , result], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL)
exit(0)