def detect_kde_version(self):
            kde_version = None
            try:
                info = commands.getoutput('kde-config --version')

                for line in info.splitlines():
                    if line.startswith('KDE'):
                        kde_version = line.split(':')[-1].strip()
                        break
            except (OSError, __HOLE__):
                pass

            return kde_version
dataset/ETHPy150Open Xion/SublimeScold/scold/system.py/KfmClient.detect_kde_version