Fixed logic for non-kde desktops