Change desktop folder and relocate music (due to space constraints) and still have the system recognise them
After I foolishly wiped my home folder clean (don't ask) my home folder became the Desktop. Whatever file I save there started to appear at the Desktop. Even after i created a folder called /home/me/Destop this continued. Also, due space constrainst I have moved my Music, Picture folders elsewhere. But I wanted my system to locate them.
So finally I had to do something.
All I had to do was to edit the file ~/.config/user-dirs.dirs .
-------------- before editing --------------
# 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/"
XDG_DOWNLOAD_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"
-------------- after editing --------------
# 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/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="/linux/Music"
XDG_PICTURES_DIR="/linux/Pictures"
XDG_VIDEOS_DIR="/linux/video-clips"
So you can see I have moved my Music, Pictures folders elsewhere because there was not enough space in my home folder. All I had to do was to set the correct value for XDG_PICTURES_DIR so that it points at the location where my Picture folder have moved.
So finally I had to do something.
All I had to do was to edit the file ~/.config/user-dirs.dirs .
-------------- before editing --------------
# 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/"
XDG_DOWNLOAD_DIR="$HOME/"
XDG_TEMPLATES_DIR="$HOME/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/"
XDG_MUSIC_DIR="$HOME/"
XDG_PICTURES_DIR="$HOME/"
XDG_VIDEOS_DIR="$HOME/"
-------------- after editing --------------
# 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/"
XDG_PUBLICSHARE_DIR="$HOME/"
XDG_DOCUMENTS_DIR="$HOME/Documents"
XDG_MUSIC_DIR="/linux/Music"
XDG_PICTURES_DIR="/linux/Pictures"
XDG_VIDEOS_DIR="/linux/video-clips"
So you can see I have moved my Music, Pictures folders elsewhere because there was not enough space in my home folder. All I had to do was to set the correct value for XDG_PICTURES_DIR so that it points at the location where my Picture folder have moved.
Comments