--- src/qt_qt_wrapper.cpp.orig 2006-04-28 22:20:04.000000000 +0200 +++ src/qt_qt_wrapper.cpp 2006-04-28 22:45:42.000000000 +0200 @@ -271,7 +271,8 @@ printf("createQApp()\n"); char* sessionEnv = getenv("SESSION_MANAGER"); - if (QString(sessionEnv).endsWith(QString::number(getpid())) || cmdLine.contains("gnome-wm") || cmdLine.contains("metacity") || cmdLine.contains("xfwm4") || (getenv("GTK_QT_ENGINE_DISABLE") != NULL)) + if (QString(sessionEnv).endsWith(QString::number(getpid())) || cmdLine.contains("gnome-wm") || cmdLine.contains("metacity") || cmdLine.contains("xfwm4") || (getenv("GTK_QT_ENGINE_DISABLE") != NULL) || + ((qApp) && (qApp->type() == QApplication::Tty))) { printf("Not initializing the Gtk-Qt theme engine\n"); }