The $HOME env variable should have precedence over the value got from getpw.
Created attachment 137890 [details] [review] xdg-user-dirs-update: give priority to $HOME
merged
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.