The final solution is to unset XDG_CURRENT_DESKTOP or export XDG_CURRENT_DESKTOP="".
unset XDG_CURRENT_DESKTOP
export XDG_CURRENT_DESKTOP=""