mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 01:59:02 +00:00
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:
parent
17829ee513
commit
52d51fe433
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user