How to run terminator with rigth click inside nautilus

First, we need to install nautilus-python extension:

sudo apt install python-nautilus

Now, you need to create the extensions folder:

mkdir ~/.local/share/nautilus-python
cd ~/.local/share/nautilus-python
mkdir extensions
cd extensions

To finish, download the extension to enable execute terminator in nautilus:

wget http://www.giuspen.com/software/nau3pyext/open-terminal-here.py

Edit it and change the label variable "Open Terminal Here" by "Open Terminator"

To restart nautilus, just execute:

nautilus -q
nautilus

If you don't have terminator as your default terminal, it is enough to choose it when executing the following command:

sudo update-alternatives --config x-terminal-emulator


UPDATED

In Ubuntu 20.10 the previous tutorial doesn't work. An alternative is to install a nautilus-extension for several terminals:


pip3 install nautilus-open-any-terminal

Edit ~/.local/share/nautilus-python/extensions/open_any_terminal_extension.py and replace 'gnome-terminal' by your favorite terminal.

To check your default terminal use the following command:
 
sudo update-alternatives --config x-terminal-emulator

If you change gnome-terminal and it doesn´t work, and terminator is your default terminal, just replace the following lines:
 
label=_("Open {} Here").format(terminal.title()),
by
label=_("Open in Terminator").format(terminal.title()),

 
 
Enjoy it!



Comments

Popular posts from this blog

Exception: Could not find a default OpenFlow controller in Mininet

How to fix Android when developer options are not available for this user

Webcam streaming throught VLC with YUY2 compatibility