There are two things that bother me a little when using Kali with Gnome Desktop. There is no Trash icon on the Desktop and the need of pressing ctrl+del to send a file or directory to the Trash. If you feel the same way read the following lines to solve it.
– Showing Trash and Home icons on desktop –
From a terminal type the following:
The “Configurator Editor” pops up. From the left panel select the following schema:
org >> gnome >> nautilus >> desktop
In the right panel you will see some interesting properties like “computer-icon-visible“, “home-icon-visible” and “trash-icon-visible“. You have to check them in order to show those icons on the Desktop. If they are already checked and you don’t see the icon, uncheck them and check them again.
– Deleting using the “Delete” key –
This was a little more painful but I finally found a solution. There is a way by activating the “can-change-accels” property using the dconf-editor utility shown previously, but the problem is that we lose our changes when nautilus is restarted.
So here is the method that worked for me using the console:
Create the folder /root/.gnome2/accels:
Create the file /root/.gnome2/accels/nautilus and write the following line:
(gtk_accel_path “/DirViewActions/Trash” “Delete”)
Save the file. Now restart nautilus: