From 4bd0fd248f15db483f28083899f8bdde5e79ca29 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 8 Aug 2013 14:55:18 -0500 Subject: Disable session management in tdeio slaves This relates to Bug 760 --- tdeioslave/thumbnail/thumbnail.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'tdeioslave/thumbnail/thumbnail.cpp') 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) -- cgit v1.2.1