Skip to content

Commit

Permalink
make it possible to toggle the 'wait-for-input' feature detection wit…
Browse files Browse the repository at this point in the history
…h an env var

git-svn-id: https://xpra.org/svn/Xpra/trunk@19417 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed May 24, 2018
1 parent 82424a7 commit 37f4c30
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/xpra/platform/win32/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 37f4c30

Please sign in to comment.