Could you check whether the attached patch would fix the problem as well ? [0001-clean-all-XDG_envvar.patch](/uploads/f79c042a444ffccf22266f0d90389a6f/0001-clean-all-XDG_envvar.patch)
If that would work, one might switch from blacklisting envvars to a whitelisting of envvars. (as suggested in https://bugs.winehq.org/show_bug.cgi?id=56941#c3)