--- /usr/bin/xdg-open.orig 2008-06-03 04:56:11.000000000 +0200 +++ /usr/bin/xdg-open 2008-06-03 05:02:58.000000000 +0200 @@ -314,7 +314,13 @@ kfmclient_fix_exit_code() { - version=`kde-config --version 2>/dev/null | grep KDE` + if [[ -x $(which kde-config) ]]; + then + version=`kde-config --version 2>/dev/null | grep KDE` + elif [[ -x $(which kde4-config) ]]; + then + version=`kde4-config --version 2>/dev/null | grep KDE` + fi major=`echo $version | sed 's/KDE: \([0-9]\).*/\1/'` minor=`echo $version | sed 's/KDE: [0-9]*\.\([0-9]\).*/\1/'` release=`echo $version | sed 's/KDE: [0-9]*\.[0-9]*\.\([0-9]\).*/\1/'`