0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

ゴミ箱の名前変更

Posted at

自身の備忘録として、ゴミ箱の名前変更方法を記録しておきます。
もし、興味ある方がいれば、こちらも合わせてどうぞ。

環境

OS: Ubuntu 18.04
Desktop環境: LXDE

方法

  1. 翻訳ファイル群のある以下のフォルダに移動する
cd /usr/share/locale-langpack/ja/LC_MESSAGES
  1. gvfs.moを編集できる形に変換
sudo msgunfmt gvfs.mo -o gvfs-edit.po
  1. Trashをゴミ箱に変更
# 778行目
msgid "Trash"
msgstr "Gomibako"
  1. gvfs-edit.poをバイナリ形式に変換
sudo msgfmt gvfs-edit.po -o gvfs.mo
  1. 再起動

考察

どうやら、デスクトップ上のゴミ箱はTrash:///という特殊なマウントによって表現されている様子。
(マウント先は~/.local/Trash/filesっぽい。)
そのマウントを司るのがgvfsというマウントアプリケーションなので、その翻訳ファイルを編集すれば表示文言を編集できるという仕組みらしい。

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

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?