Review Request: Extend KStandardDirs::find[All]Exe() to also look for .com, and .bat on Windows

Thomas Friedrichsmeier thomas.friedrichsmeier at
Wed Apr 21 17:00:32 BST 2010

This is an automatically generated e-mail. To reply, visit:

(Updated 2010-04-21 16:00:31.460269)

Review request for kdelibs, Jaroslaw Staniek and Patrick Spendrin.


Updated testing status.


On Windows, KStandardDirs::findExe(), and findAllExe() append ".exe" to the filename to look for. However, executable files on Windows may also end in .com or .bat. Therefore, this patch looks for all three extensions in the order .exe, .com, .bat.

For example, rkward ships with a wrapper script rkward.bat. kwinstartmenu relies on KStandardDirs::findExe() to locate the executables referenced in .desktop files, and fails to find rkward.bat. This patch fixes that.

P.S.: Where should windows-specific review requests go to?


  trunk/KDE/kdelibs/kdecore//kernel/kstandarddirs.cpp 1115458 
  trunk/KDE/kdelibs/kdecore//tests/kstandarddirstest.cpp 1115458 


Testing (updated)

I get the same pattern of failed test suites with and without this patch.

Inside kstandarddirstest, all but one tests now pass. The remaining failed part (in both patched and unpatched versions) is KStandarddirsTest::testFindExe() due to picking up the local exe within the build tree (unrelated to the essence of this review request).

On Linux, kstandarddirstest continues to compile, and all tests continue to pass with the patch.



More information about the kde-core-devel mailing list