summaryrefslogtreecommitdiffstats
path: root/tdeioslave/thumbnail/thumbnail.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tdeioslave/thumbnail/thumbnail.cpp')
-rw-r--r--tdeioslave/thumbnail/thumbnail.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/tdeioslave/thumbnail/thumbnail.cpp b/tdeioslave/thumbnail/thumbnail.cpp
index e5c67ec0d..0e6b24880 100644
--- a/tdeioslave/thumbnail/thumbnail.cpp
+++ b/tdeioslave/thumbnail/thumbnail.cpp
@@ -98,16 +98,17 @@ int kdemain(int argc, char **argv)
#ifdef USE_KINSTANCE
TDEInstance instance("tdeio_thumbnail");
#else
- // creating TDEApplication in a slave in not a very good idea,
+ // creating TDEApplication in a slave is not a very good idea,
// as dispatchLoop() doesn't allow it to process its messages,
// so it for example wouldn't reply to ksmserver - on the other
// hand, this slave uses QPixmaps for some reason, and they
// need QApplication
// and HTML previews need even TDEApplication :(
- putenv(strdup("SESSION_MANAGER="));
+ // session management is therefore forcibly disabled on creation
+ // to prevent session management hangs and stalls
TDEApplication::disableAutoDcopRegistration();
- TDEApplication app(argc, argv, "tdeio_thumbnail", false, true);
+ TDEApplication app(argc, argv, "tdeio_thumbnail", false, true, false);
#endif
if (argc != 4)