* Mon Dec 09 2013 Kevin Kofler <Kevin@tigcc.ticalc.org> - 6:4.11.3-8 - drop klauncher-timeout patch that did not help - set QT_NO_GLIB in klauncher_main.cpp as a possible fix/workaround for #983110
26 lines
927 B
Diff
26 lines
927 B
Diff
diff -ur kdelibs-4.11.3/kinit/klauncher_main.cpp kdelibs-4.11.3-klauncher-no-glib/kinit/klauncher_main.cpp
|
|
--- kdelibs-4.11.3/kinit/klauncher_main.cpp 2013-06-28 19:03:41.000000000 +0200
|
|
+++ kdelibs-4.11.3-klauncher-no-glib/kinit/klauncher_main.cpp 2013-12-09 00:32:12.000000000 +0100
|
|
@@ -75,10 +75,21 @@
|
|
// WABA: Make sure not to enable session management.
|
|
putenv(strdup("SESSION_MANAGER="));
|
|
|
|
+ // Disable the GLib event loop (rh#983110)
|
|
+ bool wasQtNoGlibSet = (getenv("QT_NO_GLIB") != 0);
|
|
+ if (!wasQtNoGlibSet) {
|
|
+ setenv("QT_NO_GLIB", "1", true);
|
|
+ }
|
|
+
|
|
// We need a QCoreApplication to get a DBus event loop
|
|
QCoreApplication app(argc, argv);
|
|
app.setApplicationName( componentData.componentName() );
|
|
|
|
+ // Now get rid of QT_NO_GLIB again so launched processes don't inherit it
|
|
+ if (!wasQtNoGlibSet) {
|
|
+ unsetenv("QT_NO_GLIB");
|
|
+ }
|
|
+
|
|
int maxTry = 3;
|
|
while(true)
|
|
{
|