Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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?

share|improve this question
    
If you rename Trash to Crap, and then logout and login again and go to ~/.local/share, there will be another Trash folder created. I think you need to change some other XDG settings as well (or perhaps use a symlink): see the trash spec. –  user76204 Jan 12 '13 at 17:44
    
@Mik No I just logged out and logged in again. There is not folder named trash...its still crap –  Mukund Jan 12 '13 at 17:47
    
I realise now -it will create another Trash folder once you delete something-I should try it. –  user76204 Jan 12 '13 at 17:54
1  
When using English it is called Rubbish bin so a method might be to copy the translation to a new name and then change Trash to Crap. This would only affect the launcher ;) –  Rinzwind Jan 12 '13 at 20:56
1  
I have created an askUbuntu account just for voting this question up. Awesome. –  KeillRandor May 14 at 15:46

3 Answers 3

up vote 14 down vote accepted
+25

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 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: http://askubuntu.com/a/225023/17722

share|improve this answer

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.

share|improve this answer
5  
That is for a trash icon on the desktop, not the trash bin in the Launcher. It's also advisable when giving a answer to show how to do something, not just provide a link. –  James Jan 22 '13 at 22:57

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.

share|improve this answer
    
But won't the unity launcher will still show Trash instead of Crap? –  blvdeer Jan 12 '13 at 20:32
    
So you want to rename Trash on Unity. I didn't understand that, sorry. Nope, you can't. Your best chance is modifying the .pot, I'll add another proposal. –  Jorge Suárez de Lis Jan 12 '13 at 22:11

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.