After detecting KDE xdg-open uses kfmcleint to open. For KDE4 the preferred general client is kioclient. detectDE should probably check for the KDE major version .
cvs is already updated for kde4 support, and uses kde-open for that task (as recommended by dfaure when I asked about it).
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.