Bug when trying to set XDG folder fixed.

Stupid mistake, it was always setting the desktop var before.