umpv-xdg

Feel free to just cherry-pick the first commit if the XDG logic isn't wanted.