Bug 382920

Summary: klauncher uses absolute compile time install path for finding kioslave.exe
Product: [Frameworks and Libraries] frameworks-kinit Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: David Faure <faure>
Status: RESOLVED FIXED    
Severity: normal CC: kdelibs-bugs, simonandric5
Priority: NOR    
Version: 5.36.0   
Target Milestone: ---   
Platform: Other   
OS: Microsoft Windows   
Latest Commit: Version Fixed In: 5.40.0
Bug Depends on:    
Bug Blocks: 380136    

Description Ralf Habacker 2017-07-30 07:12:24 UTC
klauncher uses CMAKE_INSTALL_FULL_LIBEXECDIR_KF5 on Windows and Mac to find kioslave executable (see https://cgit.kde.org/kinit.git/tree/src/klauncher/klauncher.cpp#n1072 and https://cgit.kde.org/kinit.git/tree/src/klauncher/klauncher.cpp#n1098).

This does not work at least on Windows where the runtime path of  kioslave.exe does not match the compile time path

Because on Windows kioslave.exe lives in the same directory as klauncher and the Windows api searches in this directory the solution is to remove any path from the requested executable string and let KProcess find it.
Comment 1 Ralf Habacker 2017-12-20 09:35:25 UTC
review request https://phabricator.kde.org/D7707