Assigning shortcuts (accelerators) to Nautilus 3
The solution is nearly the same as the answer in the question you linked to, except you need to use dconf-editor
instead of gconf-editor
. I had to install dconf-editor
, which if I remember correctly, comes with the dconf-tools
package. Also, the killall nautilus ...
command did not appear to be necessary.
So, once you've got dconf-editor
, run it.
- Go to
org/gnome/desktop/interface
. - Check the box for
can-change-accels
. - Open Nautilus and highlight the menu item whose key binding you want to change, either with your mouse or via the keyboard, and press the key(s) you want to use as the shortcut.
- Don't forget to uncheck
can-change-accels
indconf-editor
after you're done.
I use a little extended workaround.
- Open
dconf-editor
. Findorg
>gnome
>desktop
>interface
and checkcan-change-accels
option. - Open
~/.gnome2/accels/
folder. Here you should see a file namednautilus
. It contains all available nautilus actions you can assign an accel to. Edit this file, save and close.
eg: I transformed the following line
; (gtk_accel_path "<Actions>/ExtensionsMenuGroup/NautilusOpenTerminal::open_terminal" "")
into
(gtk_accel_path "<Actions>/ExtensionsMenuGroup/NautilusOpenTerminal::open_terminal" "<Alt>t")
and now I am able to open terminal in current directory by pressing
<Alt>t
.- Uncheck
can-change-accels
. Restart nautilus.
pkill nautilus && nautilus
It's due to the presence of the global menu?
Yes. You can set the keys by launching apps without global menu UBUNTU_MENUPROXY=0 gedit
Once set, it will work with the global menu.