Review Request: Extend KStandardDirs::find[All]Exe() to also look for .com, and .bat on Windows
Thomas Friedrichsmeier
thomas.friedrichsmeier at ruhr-uni-bochum.de
Wed Apr 21 17:00:32 BST 2010
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
http://reviewboard.kde.org/r/3388/
-----------------------------------------------------------
(Updated 2010-04-21 16:00:31.460269)
Review request for kdelibs, Jaroslaw Staniek and Patrick Spendrin.
Changes
-------
Updated testing status.
Summary
-------
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?
Diffs
-----
trunk/KDE/kdelibs/kdecore//kernel/kstandarddirs.cpp 1115458
trunk/KDE/kdelibs/kdecore//tests/kstandarddirstest.cpp 1115458
Diff: http://reviewboard.kde.org/r/3388/diff
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.
Thanks,
Thomas
More information about the kde-core-devel
mailing list