วันอังคาร, พฤษภาคม 08, 2555

Ubuntu file manager context extension (nautilus script)

I want to right click then excute the terminal from that current directory. It's long time ago, I know there's a way to do this. So, this is the ;)

  1. create this folder if it's not existed ~/.gnome2/nautilus-scripts
    (or /home/<your account>/.gnome2/nautilus-scripts) 
  2. Put the wanted script beneath it.

$cd ~/.gnome2/nautilus-scripts/



~/.gnome2/nautilus-scripts$ls -l
total 0



~/.gnome2/nautilus-scripts$ cp ~/script/nautilus_Open_terminal_here.txt .
~/.gnome2/nautilus-scripts$ cp ~/script/root-nautilus-here.txt .


~/.gnome2/nautilus-scripts$ mv nautilus_Open_terminal_here.txt Open-terminal-here
~/.gnome2/nautilus-scripts$ mv root-nautilus-here.txt root-nautilus-here

~/.gnome2/nautilus-scripts$ chmod +x *


Then if we right click on the nautilus there's a 'script' context menu and there's 2 script under it DONE! ;)




The HOWTO I got it from NautilusScriptsHowto.
There're more (nautilus) scripts from this URL.