Skip to content

Commit

Permalink
fix gui mode detection, use the same redirect-output test
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@15725 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Apr 27, 2017
1 parent 90401c5 commit 8717e38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/xpra/platform/win32/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,10 +292,9 @@ def do_init():
def _show_message(message, uType):
global prg_name
#TODO: detect cx_freeze equivallent
GUI_MODE = hasattr(sys, "frozen") and sys.frozen=="windows_exe"
from xpra.util import envbool
SHOW_MESSAGEBOX = envbool("XPRA_MESSAGEBOX", True)
if SHOW_MESSAGEBOX and GUI_MODE:
if SHOW_MESSAGEBOX and REDIRECT_OUTPUT:
#try to use an alert box since no console output will be shown:
try:
MessageBoxA(0, message, prg_name, uType)
Expand Down

0 comments on commit 8717e38

Please sign in to comment.