Whenever someone launches file manager from launcher /usr/bin/nautilus is executed through nautilus.desktop. Now, in nautilus, if the user presses ,Ctrl+T, a new tab is opened. For this to happen, some file or commands must be executed. Where are these files or commands stored?

There are no keyboard-specific executables in usr/bin/. In short what does OS do when some keyboard shortcut is used?


The keyboard shortcuts for nautilus are defined in ~/.config/nautilus/accels file.

  • But, how does it work? It shows a path like <Actions>/ShellActions/New Tab but find ShellActions says that there is no such directory. Where does that path lead to? – nitishch Nov 8 '13 at 9:05
  • And, what is the case with other applications? ~/.config lists only some applications – nitishch Nov 8 '13 at 9:12
  • @nitish That file (~/.config/nautilus/accels) is an automated accelerator map dump loaded by Nautilus using Gtk3 (Gtk.AccelMap.load()). If you have good knowledge in C++ programming, you should get a look on the nautilus source code to understand how exactly. In general the shortcuts for an application are defined in its source code. – Radu Rădeanu Nov 8 '13 at 9:22
  • @nitish The purpose of ~/.config directory is for program configuration and user setting files. Not all programs need to keep configuration files in there. That's why you don't see all the apps there. – Radu Rădeanu Nov 8 '13 at 9:32

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.