Index: kdelibs-4.3.2/kdecore/CMakeLists.txt =================================================================== --- kdelibs-4.3.2.orig/kdecore/CMakeLists.txt 2009-08-27 10:19:05.000000000 +0200 +++ kdelibs-4.3.2/kdecore/CMakeLists.txt 2009-10-15 14:17:22.000000000 +0200 @@ -59,6 +59,7 @@ endif (HAVE_RESOLV_LIBRARY) if (APPLE) + add_definitions(-DBUNDLE_INSTALL_DIR="\\"${BUNDLE_INSTALL_DIR}\\"") set(kdecore_OPTIONAL_SRCS ${kdecore_OPTIONAL_SRCS} kernel/kkernel_mac.cpp ) Index: kdelibs-4.3.2/kdecore/kernel/kstandarddirs.cpp =================================================================== --- kdelibs-4.3.2.orig/kdecore/kernel/kstandarddirs.cpp 2009-05-06 12:14:38.000000000 +0200 +++ kdelibs-4.3.2/kdecore/kernel/kstandarddirs.cpp 2009-10-15 14:21:57.000000000 +0200 @@ -1204,6 +1204,10 @@ exePaths << KShell::tildeExpand( tokens[ i ] ); } +#ifdef Q_WS_MAC + exePaths << QString::fromLatin1(BUNDLE_INSTALL_DIR); +#endif + return exePaths; }