En la anterior entrada he explicado como hacer para que nuestro usuario en Linux y OS X tenga el mismo UID y GID, pero, ¿cómo hacemos para que las carpetas por defecto usadas para Docuementos, Musica, Video, etc sean las mismas en ambos sistemas?

Para esto, tendremos que modificar el fichero de configuración situado en .config/user-dirs.dirs sustituyendo su contenido por el siguiente:

# This file is written by xdg-user-dirs-update
# If you want to change or add directories, just edit the line you’re
# interested in. All local changes will be retained on the next run
# Format is XDG_xxx_DIR=”$HOME/yyy”, where yyy is a shell-escaped
# homedir-relative path, or XDG_xxx_DIR=”/yyy”, where /yyy is an
# absolute path. No other format is supported.
#
XDG_DESKTOP_DIR=”$HOME/Desktop”
XDG_DOWNLOAD_DIR=”$HOME/Downloads”
XDG_TEMPLATES_DIR=”$HOME/Plantillas”
XDG_PUBLICSHARE_DIR=”$HOME/Public”
XDG_DOCUMENTS_DIR=”$HOME/Documents”
XDG_MUSIC_DIR=”$HOME/Music”
XDG_PICTURES_DIR=”$HOME/Pictures”
XDG_VIDEOS_DIR=”$HOME/Movies”

Por último, ejecutaremos los siguientes comandos para actualizar los cambios:

unai@CaptainHaddock:~$ xdg-user-dirs-gtk-update
unai@CaptainHaddock:~$ xdg-user-dirs-update

No hay comentarios.