LoginSignup
0
0

More than 3 years have passed since last update.

home directry内の規定のフォルダ名を日本語から英語に変更する

Last updated at Posted at 2020-07-03

作業ログです。

★user-dirs.dirsをviで編集する方法
・XDG_*****_DIR=の後ろにある""内に記述されているネームを編集する
marcy0713@Inspiron-11-3162:~/.config$ pwd
/home/marcy0713/.config
marcy0713@Inspiron-11-3162:~/.config$ ls
dconf gedit gnome-session ibus update-notifier
enchant gnome-control-center goa-1.0 nautilus user-dirs.dirs
evolution gnome-initial-setup-done gtk-3.0 pulse user-dirs.locale
marcy0713@Inspiron-11-3162:~/.config$ vi 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/ビデオ"

★言語環境に合わせて変更する方法
・xdg-user-dirs-gtk-updateを利用する
①「LANGUAGE=en_US LANG=en_US.UTF-8 xdg-uesr-dirs-gtk-update」を実行
※LANGUAGEはUIの言語を指定する環境変数
※LANGはLocalの環境変数のデフォルト値を定義する環境変数
②「Update standard folders to current language?」と聞かれるので「Update Names」を選択
※「user-dirs.dirs」ファイルを確認すると変更後の言語が確認できる

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0