How to configure Nemo’s right-click “Open in Terminal” to launch “gnome-terminal”

gnome-terminalnemo

I realize the default of the Nemo's right-click "Open in Terminal" is to launch "gnome-terminal", however, my installation is opening "xfce4-terminal" instead.

A while back when "gnome-terminal" was broken, I installed "xfce4-terminal" as an alternative. I configured the system-wide defaults to call "xfce4-terminal" for the terminal.

After the issue with Gnome-terminal was resolved, I moved the system-wide defaults back to Gnome-terminal. Nautilus starting using Gnome-terminal again, however Nemo continues to only launch "xfce4-terminal".

I uninstalled "xfce4-terminal" then the "Open in a Terminal" feature of Nemo stopped working.

In attempts to resolve this issue I have done the following:

  • ReInstalled Ubuntu 16.04
  • Purged and reinstalled Nemo

Nemo still will only launch "xfce4-terminal". It appears to be a problem with in my home folder's Nemo configuration or some other per user cache.

Creating a new user, and Nemo properly launches "Gnome-Terminal".

Can someone help me with where to check and fix Nemo's functionality in my '/home/username` settings.

Is there some type of editible configuration to check what happens when clicking on the "Open in Terminal" function?

Best Answer

Google brought me here, so I'm reviving this thread in hope of saving at least one person from a few unnecessary headaches.

I'm using Debian and the suggestion from L. D. James here didn't work for me. So I took a look at Nemo's source code, and on line 132 of nemo-global-preferences.c I found that the (upstream) config schema is the following:

org.cinnamon.desktop.default-applications.terminal

I'm using Nemo as a substitute for Nautilus, and since I'm using Gnome3 instead of Cinnamon, for me this schema didn't even exist. So, I created it with the following command. After issuing this command, the 'Open in Terminal' action opens gnome-shell, in the correct directory:

gsettings set org.cinnamon.desktop.default-applications.terminal exec gnome-shell 

Just replace gnome-shell in the command with whatever terminal you'd like to use. Ex: for gnome-terminal, use:

gsettings set org.cinnamon.desktop.default-applications.terminal exec gnome-terminal

And for terminator (sudo apt install terminator) use:

gsettings set org.cinnamon.desktop.default-applications.terminal exec terminator
Related Question