How to make "delete" key work in Gnome 3/Nautilus and make the change stick
Solution 1
Kache’s solution worked once, I think, but that seems to have changed. What worked for me was to open ~/.config/nautilus/accels
, where the second line said ; (gtk_accel_path "<Actions>/DirViewActions/Trash" "<Primary>Delete")
. The semicolon is a comment symbol; delete it and also remove the <Primary>
part. Finally make sure to really restart Nautilus. (Don’t forget about a possible second instance that you may have open on another workspace like I did.)
Thanks to Kagu and dmoebius for this.
Solution 2
-
In terminal:
mkdir ~/.gnome2/accels # without this directory, the change won't stick
-
Then:
gsettings set org.gnome.desktop.interface can-change-accels true
Alternatively:
Rundconf-editor
, navigate to org.gnome.desktop.interface and checkcan-change-accels
Open Nautilus, select any file, go to menu
Edit
, and highlightMove to Trash
.Hit
delete
to clear the old shortcut, and hitdelete
again to set it todelete
.-
Then in terminal:
gsettings set org.gnome.desktop.interface can-change-accels false
Alternatively:
Uncheckcan-change-accels
indconf-editor
Related videos on Youtube
Kache
Updated on September 18, 2022Comments
-
Kache almost 2 years
In Gnome 3/Nautilus (in Fedora 17), the keyboard shortcut for moving a file to trash is
ctrl + delete
. How do I change it to justdelete
? -
miguno over 10 yearsKache's instructions work successfully on Debian Wheezy.
-
aaaaaa over 8 yearsThis worked for me on Debian 8 Jessie
-
Algomorph almost 7 yearsI had to do something similar on a fresh install of Ubuntu 16.04.3 to restore the delete key moving files to trash... Wow, what a regression.