去掉在桌面上显示的主文件夹内容

 昨天忍耐不住,把网本的操作系统从Ubuntu换成了Lubuntu。安装完毕以后习惯性的手工把home里的所有中文文件夹名称都换成了英文的。重新启动后桌面上显示的居然是主文件夹下的全部内容。在桌面上创建一个文件或者文件夹实际上也就相当于是创建在主文件夹下。如下图

多方折腾后发现问题出在 ~/.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/"

手工把对应都加上,重新启动下X就行了。

# 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/Download"
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"

其实这个问题N年前早老版本的Ubuntu里面就遇到过。【Over】

日历

最近发表

京ICP备06005719号 ◎版权声明:欢迎转载。如果方便,请转载时以超链接形式标明文章原始出处。谢谢!!

本站点由 Z-Blog 1.8 Walle Build 100427 构建,基于 Glued Ideas Subtle 主题,由 zx.asd 移植并创新.