import extractattr and extractrc from KDE dev scripts repo