Add a custom option in Nautilus right click menu

PRATEEK AGRAWAL picture PRATEEK AGRAWAL · Nov 11, 2017 · Viewed 9k times · Source

When a user right-click on a folder in Nautilus, a menu appears. I want to add more options in that menu. I am using Gnome 3.

Is there any other way to customize that menu with command line? Actually I am making a Linux software and I want that these these options should be added when user installs the software.

Answer

remjg picture remjg · Feb 5, 2018

You might want to use a Nautilus script, which doesn't require any additional installation like for Nautilus Actions.

In order to do that :

  • copy your script in the folder ~/.local/share/nautilus/scripts/
  • make sure it's executable.

It will then appear under the Scripts entry, from the right click context menu like below:

Screenshot of Nautilus script context menu