Blame SOURCES/kdelibs-4.11.3-klauncher-no-glib.patch

219491
diff -ur kdelibs-4.11.3/kinit/klauncher_main.cpp kdelibs-4.11.3-klauncher-no-glib/kinit/klauncher_main.cpp
219491
--- kdelibs-4.11.3/kinit/klauncher_main.cpp	2013-06-28 19:03:41.000000000 +0200
219491
+++ kdelibs-4.11.3-klauncher-no-glib/kinit/klauncher_main.cpp	2013-12-09 00:32:12.000000000 +0100
219491
@@ -75,10 +75,21 @@
219491
    // WABA: Make sure not to enable session management.
219491
    putenv(strdup("SESSION_MANAGER="));
219491
 
219491
+   // Disable the GLib event loop (rh#983110)
219491
+   bool wasQtNoGlibSet = (getenv("QT_NO_GLIB") != 0);
219491
+   if (!wasQtNoGlibSet) {
219491
+      setenv("QT_NO_GLIB", "1", true);
219491
+   }
219491
+
219491
    // We need a QCoreApplication to get a DBus event loop
219491
    QCoreApplication app(argc, argv);
219491
    app.setApplicationName( componentData.componentName() );
219491
 
219491
+   // Now get rid of QT_NO_GLIB again so launched processes don't inherit it
219491
+   if (!wasQtNoGlibSet) {
219491
+      unsetenv("QT_NO_GLIB");
219491
+   }
219491
+
219491
    int maxTry = 3;
219491
    while(true)
219491
    {