From: Pavel Sanda Date: Thu, 17 Aug 2023 21:36:18 +0000 (+0200) Subject: * lyxpaperview.py - non-waiting process call for all cases. X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=1e4f91384776250ba3e5335c336bdad2ce3e0934;p=features.git * lyxpaperview.py - non-waiting process call for all cases. --- diff --git a/lib/scripts/lyxpaperview.py b/lib/scripts/lyxpaperview.py index 32f83ead3b..1eb867a416 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)