首页 > 其他 > 详细

Ubuntu在桌面上显示主文件夹内容

时间:2014-03-07 03:03:37      阅读:568      评论:0      收藏:0      [点我收藏+]
(一)Problem description:
删除主文件夹下的:文档,模板,视频,音乐,桌面等文件夹之后,重新开机后所有主文件夹下的内容都出现在桌面
(二)Solution:
vim ~/.config/user-dirs.dirs
2.1 修改前:
# 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/"

2.2 修改后:
# 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"

2.3 验证:重启系统

Ubuntu在桌面上显示主文件夹内容,布布扣,bubuko.com

Ubuntu在桌面上显示主文件夹内容

原文:http://blog.csdn.net/zhouhong1026/article/details/20646051

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!