Creating nautilus scripts

From Notes_Wiki
Revision as of 14:33, 21 November 2013 by Saurabh (talk | contribs)

<yambe:breadcrumb>Nautilus</yambe:breadcrumb>

Creating nautilus scripts

We can write nautilus scripts which can be executed through pop-up menu which is generated when one right clicks somewhere in nautilus window.


Open terminal

We can create a script with name 'Open Terminal Here' with following contents:

	#!/usr/bin/env bash
	newPath=${NAUTILUS_SCRIPT_CURRENT_URI/file:\/\//}
	newPath=${newPath//%20/ }
	gnome-terminal --working-directory="$newPath"

and save it in ~/.nautilus/scripts folder. So that whenever we right click folder we get option 'Open Terminal here' which opens terminal in current folder.