I just played a bit with bootchart and found (if I read the chart correctly) that GDM somehow runs kde4-config. The result is that the boot process takes about 2-4 seconds longer (I tested with kde4-config removed) because kde4-config pulls in a lot of extra libs (Qt4...). This is quite a lot considering the whole boot takes about 28-30 seconds. Now I'm wondering why kde4-config is called. All it seems to do is echoing the installation prefix (or nothing here, because I don't have a full KDE4 desktop installed).
Created attachment 342235 [details] Part of the bootchart
Probably some autostart file that gets installed by some kde package. Can you look around in /etc/xdg/autostart and /usr/share/gnome/autostart ? Could also be due to some xinitrc script, so look through /etc/X11/xinit/xinitrc.d/ as well.
Hmm, nothing relevant in those autostart dirs (I made sure and cat * | grep kde turns up nothing). Same for xinitrc.d, but I found /etc/profile.d/kde4.sh (drom kdelibs rpm) which seems to just set QT_PLUGIN_PATH to whatever "kde4-config --path qtplugins" returns: some directory in /usr which I'm sure KDE/QT apps look in even if QT_PLUGIN_PATH is unset. If you can confirm that GDM just executes all the scripts in /etc/profile.d/ we can re-assign to kdelibs I think. I'm sure the kde4.sh has it's use but calling kde4-config and adding 2-4 seconds delay does not seem to be justified. [1] http://koji.fedoraproject.org/koji/rpminfo?rpmID=1191706
Stuff in /etc/profile.d gets read by bash when you start it as a login shell.
That was my impression as well, but somehow things get run automatically before I start a bash.
Ok, moving this to the kde-side. It has nothing to do with gdm.
I'll see if we can put in additions to QT_PLUGIN_PATH by default, without having to resort to using hackish and expensive env variables. Any comments or objections to this plan?
Created attachment 342703 [details] search kde4 plugins path A first attempt at patching qt to always search kde4 plugin path. Any comments? (Should work I think, but I only tested if it builds, not tested if it works yet)
tested qt patch, it works as advertised. If there aren't any red-flags here, we could consider dropping munging QT_PLUGINS_PATH in /etc/profile.d/kde4.sh now.
After some (irc-mostly) discussion, we're going to try the KISS approach, and avoid qt patching, and just use QT_PLUGIN_PATH="/usr/lib64/kde4/plugins:/usr/lib/kde4/plugins" in kde4.(sh|csh) and see how things go.
Officially waffled, trying qt approach first, to avoid possible complications of listing non-native-arch bits (and it potentially non-preferred order) in QT_PLUGIN_PATH. qt-4.5.1-10 includes aforementioned patch kdelibs-4.2.3-3 will drop QT_PLUGINS_PATH munging (for now).
kdeaccessibility-4.2.3-1.fc11, kdeadmin-4.2.3-1.fc11, kdeartwork-4.2.3-1.fc11, kdebase-4.2.3-1.fc11, kdebase-workspace-4.2.3-2.fc11, kdebindings-4.2.3-2.fc11, kdeedu-4.2.3-1.fc11, kdegames-4.2.3-1.fc11, kdegraphics-4.2.3-1.fc11, kdemultimedia-4.2.3-1.fc11, kdenetwork-4.2.3-1.fc11, kdepim-4.2.3-1.fc11, kdepimlibs-4.2.3-1.fc11, kdeplasma-addons-4.2.3-1.fc11, kdesdk-4.2.3-1.fc11, kdetoys-4.2.3-1.fc11, kdeutils-4.2.3-1.fc11, kde-l10n-4.2.3-1.fc11, kdebase-runtime-4.2.3-2.fc11, kdelibs-4.2.3-3.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update kdeaccessibility kdeadmin kdeartwork kdebase kdebase-workspace kdebindings kdeedu kdegames kdegraphics kdemultimedia kdenetwork kdepim kdepimlibs kdeplasma-addons kdesdk kdetoys kdeutils kde-l10n kdebase-runtime kdelibs'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-4808
kdeaccessibility-4.2.3-1.fc11, kdeadmin-4.2.3-1.fc11, kdeartwork-4.2.3-1.fc11, kdebase-4.2.3-1.fc11, kdebindings-4.2.3-2.fc11, kdeedu-4.2.3-1.fc11, kdegames-4.2.3-1.fc11, kdegraphics-4.2.3-1.fc11, kdemultimedia-4.2.3-1.fc11, kdenetwork-4.2.3-1.fc11, kdepim-4.2.3-1.fc11, kdepimlibs-4.2.3-1.fc11, kdeplasma-addons-4.2.3-1.fc11, kdesdk-4.2.3-1.fc11, kdetoys-4.2.3-1.fc11, kdeutils-4.2.3-1.fc11, kde-l10n-4.2.3-1.fc11, kdebase-runtime-4.2.3-2.fc11, kdelibs-4.2.3-3.fc11, kdebase-workspace-4.2.3-3.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update kdeaccessibility kdeadmin kdeartwork kdebase kdebindings kdeedu kdegames kdegraphics kdemultimedia kdenetwork kdepim kdepimlibs kdeplasma-addons kdesdk kdetoys kdeutils kde-l10n kdebase-runtime kdelibs kdebase-workspace'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-4808
We should push that one to stable together with the Qt 4.5.1 update, not the KDE 4.2.3 one, as it needs changes both in Qt and KDE.
qt-4.5.1-10.fc11, kdelibs-4.2.3-3.fc11, kdeplasma-addons-4.2.3-2.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update qt kdelibs kdeplasma-addons'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-4813
kdelibs-4.2.3-3.fc11, kdeplasma-addons-4.2.3-2.fc11, qt-4.5.1-11.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update kdelibs kdeplasma-addons qt'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-4813
*** Bug 489093 has been marked as a duplicate of this bug. ***
kdelibs-4.2.3-3.fc11, kdeplasma-addons-4.2.3-2.fc11, qt-4.5.1-13.fc11 has been pushed to the Fedora 11 testing repository. If problems still persist, please make note of it in this bug report. If you want to test the update, you can install it with su -c 'yum --enablerepo=updates-testing update kdelibs kdeplasma-addons qt'. You can provide feedback for this update here: http://admin.fedoraproject.org/updates/F11/FEDORA-2009-4813
*** Bug 504209 has been marked as a duplicate of this bug. ***
As written in the 2 duplicates, this also causes /.kde in the root directory to be accessed (/root/.kde or /home/*/.kde are valid, /.kde isn't), which gets denied by SELinux.
This bug appears to have been reported against 'rawhide' during the Fedora 11 development cycle. Changing version to '11'. More information and reason for this action is here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping
kdelibs-4.2.3-3.fc11, kdeplasma-addons-4.2.3-2.fc11, qt-4.5.1-13.fc11 has been pushed to the Fedora 11 stable repository. If problems still persist, please make note of it in this bug report.
*** Bug 518861 has been marked as a duplicate of this bug. ***
*** Bug 566066 has been marked as a duplicate of this bug. ***