From kde-commits Sun Jan 04 12:32:21 2009 From: Alexander Neundorf Date: Sun, 04 Jan 2009 12:32:21 +0000 To: kde-commits Subject: KDE/kdelibs/kdecore Message-Id: <1231072341.979118.18774.nullmailer () svn ! kde ! org> X-MARC-Message: https://marc.info/?l=kde-commits&m=123107235031273 SVN commit 905401 by neundorf: Since there was no response to my mail on k-c-d (http://lists.kde.org/?l=kde-core-devel&m=123088427220820&w=2), add a hack to print also the documentation for the lib, include, tmp and socket directories. If somebody knows a better way to do this, please do so. Alex M +18 -0 kde-config.cpp --- trunk/KDE/kdelibs/kdecore/kde-config.cpp #905400:905401 @@ -121,6 +121,24 @@ if (args->isSet("types")) { QStringList types = KGlobal::dirs()->allTypes(); + // The list returned by allTypes() doesn't contain the lib, include, + // tmp and socket directories. I don't know if it should: + // http://lists.kde.org/?l=kde-core-devel&m=123088427220820&w=2 + // But we have documentation for them, so insert these manually into this lists + // so the documentation printed is complete. Alex + if(!types.contains("lib")) { + types << "lib"; + } + if(!types.contains("include")) { + types << "include"; + } + if(!types.contains("tmp")) { + types << "tmp"; + } + if(!types.contains("socket")) { + types << "socket"; + } + types.sort(); const char *helptexts[] = { "apps", I18N_NOOP("Applications menu (.desktop files)"),