20

I was trying to Rename the folder Trash to Crap.

I did this

I first ran cd /home/username/.local/share/

Now my present working directory is /home/username/.local/share

then when I typed ls I could see the folder Trash.

then I renamed it to Crap by typing mv Trash Crap

and then when I again typed ls I could see that the folder was renamed to Crap but on the launcher when I open the Trash folder it's still named as Trash and not Crap. Why is that so?

Braiam
  • 69,112
Mukund
  • 2,122

3 Answers3

16

Yeah, you can abuse the translations system to do this.

Make a temporary text file using gedit

gedit /tmp/foo.po

and enter this text into it:

msgid "Trash"

msgstr "Crap"

Change to /usr/share/locale/en/LC_MESSAGES

cd /usr/share/locale/en/LC_MESSAGES

And then apply changes

sudo msgfmt -o unity.mo /tmp/foo.po

Now restart unity to make the changes take effect.

unity --replace

Source: https://askubuntu.com/a/225023/17722

Amith KK
  • 13,547
3

From the Freedesktop Trash Specification:

For every user a “home trash” directory MUST be available. Its name and location are $XDG_DATA_HOME/Trash ; $XDG_DATA_HOME is the base directory for user-specific data, as defined in the Desktop Base Directory Specification .

So, no. It seems there is no way to rename the directory.

However, you can make a soft link with the name you want, and then hide the Trash directory:

ln -s ~/.local/share/Trash ~/.local/share/Crap
echo Trash > ~/.local/share/.hidden

Not every file explorer will honor this .hidden file, for example the terminal itself. However, it seems to work properly on Nautilus.

Seth
  • 59,332
-3

Go to http://ubuntu-tweak.com/ There you can download the program and use it to change it to whatever you want. As for "Rubbish Bin," your settings probably has you in Australia.