[转]gnome环境中将家目录下预设的文件夹由中文名称改为英文名称

参考文章:gnome环境中将家目录下预设的文件夹由中文名称改为英文名称

打开终端

1 修改语言环境为英文

export LANG=en_US

如果想修改语言环境为日语,可执行 export LANG=ja_JP.UTF-8

2. 更新文件夹名称

xdg-user-dirs-gtk-update

会弹出一个确认框,选择"Update Names" 来确认更新文件夹名称操作

可能在终端会显示:

wa@linux-w3h7:~> export LANG=en_US
wa@linux-w3h7:~> xdg-user-dirs-gtk-update
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
Moving DESKTOP directory from 桌面 to Desktop
Moving DOWNLOAD directory from 下载 to Downloads
Moving TEMPLATES directory from 模板 to Templates
Moving PUBLICSHARE directory from 公共 to Public
Moving DOCUMENTS directory from 文档 to Documents
Moving MUSIC directory from 音乐 to Music
Moving PICTURES directory from 图片 to Pictures
Moving VIDEOS directory from 视频 to Videos
View Code

更新文件夹名称的详细过程(结果)

3. 还原语言环境为中文

export LANG=zh_CN.UTF-8

 

语言代码后面加.UTF-8,目前发现是为了避免在终端中显示的中文乱码。如果需要设置gnome home文件夹名称为其它语言名称,需要自己找需要语言的语言代码。

posted @ 2017-05-11 20:25  五毛钱的饼  阅读(676)  评论(0编辑  收藏  举报