I'm using Ubuntu 18.04 (GNOME). I have just changed the default icon of the Trash bin to a custom one by right-clicking the trash bin icon, choosing properties, clicking on the old icon and finding the new corresponding icon file via Nautilus. No terminal commands were used.
Now I'm trying to revert the changes, but with no luck so far. Unfortunately, there's no working option like "revert changes" or something like that.
Best Answer
when the trash icon is changed by right clicking it, Properties and clicking on icon,
the path of this newly selected icon will be saved in
~/.config/nautilus/desktop-metadata
when the icon was not changed, some of the content in this file is
for example:
I have changed the trash-icon by right clicking... then the content of above mentioned file changed to
to revert the changes.. the below line need to be deleted from the file
~/.config/nautilus/desktop-metadata
to delete the line and save the changes..run the below command, edit and save the file.
Now logout and login to see the change..