summaryrefslogtreecommitdiffstats
path: root/tdeioslave/thumbnail
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-08 14:55:18 -0500
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2013-08-08 14:55:18 -0500
commit4bd0fd248f15db483f28083899f8bdde5e79ca29 (patch)
tree236773d5d54704fef49cfbc359356b866197bc08 /tdeioslave/thumbnail
parent960cc8392da291eaf6c90d2101b721f6c20488f3 (diff)
downloadtdebase-4bd0fd248f15db483f28083899f8bdde5e79ca29.tar.gz
tdebase-4bd0fd248f15db483f28083899f8bdde5e79ca29.zip
Disable session management in tdeio slaves
This relates to Bug 760
Diffstat (limited to 'tdeioslave/thumbnail')
-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)