24

I have set the default terminal emulator to terminator using update-alternatives and I can open terminator now with ctrl-alt-t, but when I use the right click menu on the desktop or in a folder it will open gnome-terminal.

Is there another setting to change to fix this?

I've edited compiz to try the 3d cube effect and from then had to reset compiz to default settings to revert which reset my terminal default. To get ctrl-alt-t working after this I also had to do gsettings set org.gnome.desktop.default-applications.terminal exec 'terminator'. I found this suggestion in How can I set default terminal used in Unity?, but this did not make it so the right click option open terminator.

I am using Ubuntu 15.10

Zanna
  • 72,312
TomC
  • 243

4 Answers4

16

The settings in gsettings set org.gnome.desktop.default-applications.terminal exec doesn't affect the behavior of the context menu entry. The used terminal is gnome-terminal and that's hard coded in libterminal-nautilus.so in the package gnome-terminal. And this library is used by Nautilus.

Perhaps this will be changed in future versions, but currently it is a fact.

A.B.
  • 92,125
10

A solution that might work is to add a custom right-click option to the Ubuntu context menu entry instead of changing the pre-existing one.

For that purpose you can use the Nautilus-Actions Configuration Tool that you can get from the repository using sudo apt-get install nautilus-actions.

A quite well detailed tutorial can be found here.

Prolix
  • 365
6

Add this to your ~/.bashrc file

if ps -o cmd= -p $(ps -o ppid= -p $$) | grep -q gnome; then
  nohup terminator &> /dev/null &
  sleep 0.1s
  exit
fi
muru
  • 207,228
4

If you don't want to use gnome-terminal on a regular basis, and you don't mind the possibility of having your hack disturbed by package upgrades, and other occasional problems, you could try removing /usr/bin/gnome-terminal (or renaming it) and replacing it with a symlink to terminator.

A slightly less intrusive approach, that would work if the context menu respects PATH, would be to leave /usr/bin/gnome-terminal alone, but add a symlink from /usr/local/bin/gnome-terminal to /usr/bin/terminator, so that anything running gnome-terminal without a fully-qualified path actually gets terminator.

hobbs
  • 1,185