port kcminit away from kdelibs4support
Review Request #122270 - Created Jan. 27, 2015 and submitted
|apol, graesslin, lukas|
Now kcminit is linked with less libraries -> startup time improved
I also suggest always setting KDE_MULTIHEAD=true to eliminate ini file access during startup and to be able to stop linking against QtGui
compiled, ran 'kcminit --list' and kcminit AAA
googling for KDE_MULTIHEAD revealed the real world use case for it.
we still can avoid qtgui linkage and possibli ini file read by adding a cmdline option or generally move KDE_MULTIHEAD setup to another place (close to it's users?)
I still think this is wrong as QGuiApplication::screens().count() gives the count of the xrandr screens and not of X11 screens.