Index: config.h.cmake
===================================================================
--- config.h.cmake	(wersja 763134)
+++ config.h.cmake	(kopia robocza)
@@ -176,11 +176,13 @@
 
 #if defined _WIN32 || defined _WIN64
 #define KPATH_SEPARATOR ';'
+#define KDIR_SEPARATOR '\\' /* faster than QDir::separator() */
 #else
 #ifndef O_BINARY
 #define O_BINARY 0 /* for open() */
 #endif
 #define KPATH_SEPARATOR ':'
+#define KDIR_SEPARATOR '/' /* faster than QDir::separator() */
 #endif
 
 #include "kdecore/kdefakes.h"
Index: kdecore/config/kdesktopfile.cpp
===================================================================
--- kdecore/config/kdesktopfile.cpp	(wersja 763134)
+++ kdecore/config/kdesktopfile.cpp	(kopia robocza)
@@ -23,6 +23,7 @@
 
 #include <QtCore/QDir>
 
+#include "config.h"
 #include "kdesktopfile.h"
 #include "kconfig_p.h"
 #include "kdebug.h"
@@ -277,12 +278,12 @@
       // Environment PATH may contain filenames in 8bit locale cpecified
       // encoding (Like a filenames).
       QStringList dirs = QFile::decodeName(::getenv("PATH"))
-	      .split(':',QString::SkipEmptyParts);
+	      .split(KPATH_SEPARATOR,QString::SkipEmptyParts);
       QStringList::Iterator it(dirs.begin());
       bool match = false;
       for (; it != dirs.end(); ++it) {
-	QString fName = *it + '/' + te;
-	if (::access(QFile::encodeName(fName), X_OK) == 0)
+	QString fName = *it + KDIR_SEPARATOR + te;
+	if (::access(QFile::encodeName(fName).constData(), X_OK) == 0)
 	{
 	  match = true;
 	  break;
