xdg-user-dirs won't update in linux applications
Emily Wong
I'm using Archlinux and I have two users in it. I created the first user when I was starting out with the system and this second is failry recent.
The problem is, I can't access my xdg-user-dirs from other applications (like inkscape's browse window) and file managers that have the xdg-user-dirs on the side pane, to be specific they show /home/firstuser/Documents instead of /home/seconduser/Documents it's like they aren't updated.
But..
When I run $ xdg-user-dir DOCUMENTS it displays the correct path (path for logged in or second in user).
Here is a list of directories in the file ~/.config/user-dirs.dirsXDG_DESKTOP_DIR="$HOME/Desktop"
XDG_DOWNLOAD_DIR="$HOME/Downloads"
XDG_TEMPLATES_DIR="$HOME/Templates"
XDG_PUBLICSHARE_DIR="$HOME/Public"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="$HOME/Music"
XDG_PICTURES_DIR="$HOME/Pictures"
XDG_VIDEOS_DIR="$HOME/Videos"
Thanks!
21 Answer
# try this
xdg-user-dirs-update
# and this if you have installed xdg-user-dirs-gtk
xdg-user-dirs-gtk-update 1