[LyX/master] * lyxpaperview.py - non-waiting process call for all cases.
Pavel Sanda
sanda at lyx.org
Thu Aug 17 20:28:23 UTC 2023
commit 1e4f91384776250ba3e5335c336bdad2ce3e0934
Author: Pavel Sanda <sanda at lyx.org>
Date: Thu Aug 17 23:36:18 2023 +0200
* lyxpaperview.py - non-waiting process call for all cases.
---
lib/scripts/lyxpaperview.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/scripts/lyxpaperview.py b/lib/scripts/lyxpaperview.py
index 32f83ea..1eb867a 100755
--- a/lib/scripts/lyxpaperview.py
+++ b/lib/scripts/lyxpaperview.py
@@ -141,7 +141,7 @@ def main(argv):
cmdline = viewer.split(" -", 1)
if len(cmdline) == 1:
- subprocess.call([viewer, result])
+ subprocess.Popen([viewer, result], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL)
elif len(cmdline) == 2:
subprocess.Popen([cmdline[0], "-" + cmdline[1] , result], stderr=subprocess.DEVNULL, stdout=subprocess.DEVNULL)
More information about the lyx-cvs
mailing list