Fix segfault when XDG_CURRENT_DESKTOP is not set