From 37f4c30333fd88cdd5001be522c9d605e793ab85 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Thu, 24 May 2018 15:39:08 +0000 Subject: [PATCH] make it possible to toggle the 'wait-for-input' feature detection with an env var git-svn-id: https://xpra.org/svn/Xpra/trunk@19417 3bb7dfac-3a0b-4e04-842a-767bc560f471 --- src/xpra/platform/win32/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/xpra/platform/win32/__init__.py b/src/xpra/platform/win32/__init__.py index 51d059e8e7..5a9ca8ca94 100644 --- a/src/xpra/platform/win32/__init__.py +++ b/src/xpra/platform/win32/__init__.py @@ -246,6 +246,10 @@ class CONSOLE_SCREEN_BUFFER_INFO(ctypes.Structure): _wait_for_input = False def set_wait_for_input(): global _wait_for_input + wfi = os.environ.get("XPRA_WAIT_FOR_INPUT") + if wfi is not None: + _wait_for_input = wfi!="0" + return if is_wine(): #don't wait for input when running under wine #(which usually does not popup a new shell window)