How to change Linux desktop user directories: Difference between revisions
From Leo's Notes
This page was last edited on 14 June 2020, at 22:27.
m Text replacement - "Category:Linux{{Navbox Linux}}" to "{{Navbox Linux}}Category:Linux" |
mNo edit summary |
||
| Line 1: | Line 1: | ||
If you need to change the desktop location from {{code|~/Desktop}} to somewhere else, edit | If you need to change the desktop location from {{code|~/Desktop}} to somewhere else or any of the other directories that are defined by freedesktop.org (aka the X Desktop Group, or XDG), edit {{code|~/.config/user-dirs.dirs}}. | ||
{{highlight|lang=text|code= | |||
# 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/" | |||
}} | |||
{{Navbox Linux}}[[Category:Linux]] | {{Navbox Linux}}[[Category:Linux]] | ||
Revision as of 22:27, 14 June 2020
If you need to change the desktop location from ~/Desktop to somewhere else or any of the other directories that are defined by freedesktop.org (aka the X Desktop Group, or XDG), edit ~/.config/user-dirs.dirs.
# 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/"