Tuesday, February 28, 2017

Adding right click options

I add my custom scripts to perform certain actions via right-click. To achieve that, we need to do following :
vim ~/.gnome2/nautilus-scripts/terminal
For nemo, we need to have scripts at following locations:

/usr/share/nemo/actions/ for system-wide actions
$HOME/.local/share/nemo/actions/ for user actions

Type the command you want to have after right click. In this example, I do :
gnome-terminal
And make that script executable:
chmod a+x ~/.gnome2/nautilus-scripts/terminal