Change default terminal for Nautilus "open in terminal"


I am using alacritty as my main terminal and have already set up keyboard shortcuts to open it instead of gnome-terminal.

In addition to this Id like to have it open from nautilus as well when right-clicking and selecting Open in Terminal.

All I found so far are old hacks for Ubuntu 13.04.

Does anyone have an idea how to achieve this in Manjaro cleanly (without symlinking /usr/bin/alacritty to /usr/bin/gnome-terminal) ?

Install and open dconf-editor, navigate to /org/gnome/desktop/applications/terminal, edit exec to suit.

1 Like

Thanks for the quick response. Ive tried it, but in dconf-editor it says DEPRECATED: This key is deprecated and ignored. The default terminal is handled in GIO.

From what I see GIO is a library though. Any idea if it respects environment variables?
Ill do some more digging myself here.

I did a web search for "arch gnome default terminal" and found this:

So there you go. :man_shrugging:

1 Like

Thank you!

Here is the solution that made it work for me:

  • (optional) Remove gnome-terminal
  • install python-nautilus
    Created this script and put into ~/.local/share/nautilus-python/extensions/
import os

from gi.repository import Nautilus, GObject

class ColumnExtension(GObject.GObject, Nautilus.MenuProvider):
    def __init__(self):
    def menu_activate_cb(self, menu, file):
        os.system("/usr/bin/alacritty --working-directory " + file.get_location().get_path())

    def get_background_items(self, window, file):
        item = Nautilus.MenuItem(name='NautilusOpenAlacritty', 
                                         label='Open in Alacritty', 
        item.connect('activate', self.menu_activate_cb, file)
        return item,
1 Like

Forum kindly sponsored by