How to make "delete" key work in Gnome 3/Nautilus and make the change stick

5

1

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 just delete?

Kache

Posted 2012-12-08T06:18:58.220

Reputation: 821

Answers

3

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.

Denis Drescher

Posted 2012-12-08T06:18:58.220

Reputation: 203

1This worked for me on Debian 8 Jessie – aaaaaa – 2015-11-30T02:10:06.030

I 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. – Algomorph – 2017-09-22T14:37:50.033

1

  1. In terminal:

    mkdir ~/.gnome2/accels # without this directory, the change won't stick

  2. Then: gsettings set org.gnome.desktop.interface can-change-accels true

    Alternatively:
    Run dconf-editor, navigate to org.gnome.desktop.interface and check can-change-accels

  3. Open Nautilus, select any file, go to menu Edit, and highlight Move to Trash.

  4. Hit delete to clear the old shortcut, and hit delete again to set it to delete.

  5. Then in terminal:
    gsettings set org.gnome.desktop.interface can-change-accels false

    Alternatively:
    Uncheck can-change-accels in dconf-editor

Kache

Posted 2012-12-08T06:18:58.220

Reputation: 821

Kache's instructions work successfully on Debian Wheezy. – Michael G. Noll – 2013-11-30T18:42:19.450