[PATCH] KStandardDirs::findExe()

Dirk Mueller mueller at kde.org
Tue Nov 6 23:15:17 GMT 2007


KStandardDirs::findExe() has currently the (IMHO undesired, but undocumented) 
behaviour of handling 


different from

cd /bin

the problem is that the cod ein the latter case looks for "./sh" in each 
component of the $PATH. This is however not the behaviour the shell exposes: 
if it contains a path, then its relative to $PWD. 

the patch below fixes that. any comments on wether we want that? this bug 
currently breaks external scripts in kate (both KDE 3 and 4). 

-------------- next part --------------
A non-text attachment was scrubbed...
Name: makeabsolute.diff
Type: text/x-diff
Size: 1927 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20071107/c77cd8cb/attachment.diff>

More information about the kde-core-devel mailing list