My current setup places the user’s home directory in a glusterfs volume. This causes problems with a recent Ubuntu 12.04 update and a user’s XDG user directories get reset to $HOME during the X11 login. It only happens for X11 logins and not shell/ssh logins.
A quick fix to this issue is to do the following:
- Make a copy of the existing X11 session XDG configuration.
-
# cp /etc/X11/Xsession.d/60xdg-user-dirs-update /etc/X11/Xsession.d/61xdg-user-dirs-update
- Edit the copy to force the user directories to their defaults.
-
# nano /etc/X11/Xsession.d/61xdg-user-dirs-updateif [ -x /usr/bin/xdg-user-dirs-update ]; then /usr/bin/xdg-user-dirs-update --force fi
Done.