xdg_basedir

Will also be used to implement #559.