Del*_*ted 6 configuration directory-structure freedesktop
安装 Linux Mint Debian 版本后,我的 .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/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"
Run Code Online (Sandbox Code Playgroud)
这个想法是应用程序应该能够为不同类型的内容找到合适的目录,同时仍然可以让用户选择目录名称(例如,用户可能希望对其进行本地化)。例如,$(xdg-user-dir DESKTOP)如果定义了桌面文件,则Gnome 和 XFCE用于桌面文件。
虽然我认为这些是相当明显的:
我想要一个例子,说明这些应该包含什么或哪些程序使用它们: