fixed kde session detection