diff --git a/src/gtkexcepthook.py b/src/gtkexcepthook.py
index 45dc13ec0d8ab46aca6c8b74ed58e6d63374794c..515af42aea0a72980dcdafe4d2ccb1ecc7e077df 100644
--- a/src/gtkexcepthook.py
+++ b/src/gtkexcepthook.py
@@ -27,6 +27,7 @@
 ##
 
 import sys
+import os
 import traceback
 import threading
 
@@ -102,7 +103,8 @@ def _info(type, value, tb):
 
 	_exception_in_progress.release()
 	
-if not sys.stderr.isatty(): # gdb/kdm etc if we use startx this is not True
+# gdb/kdm etc if we use startx this is not True
+if os.name == 'nt' or not sys.stderr.isatty():
 	#FIXME: maybe always show dialog?
 	_excepthook_save = sys.excepthook
 	sys.excepthook = _info