How to change the terminal to Alacritty in "Open in Terminal" context mneu?

9,963

Solution 1

I installed manually and put the executable in /usr/local/bin

I run this command taken from here to add an alacritty alternative:

sudo update-alternatives --install /usr/bin/x-terminal-emulator x-terminal-emulator /usr/local/bin/alacritty 50

then I run @walttheboss command:

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

If you want remove alacritty alternative this is the command:

sudo update-alternatives --remove "x-terminal-emulator" "/usr/local/bin/alacritty"

Solution 2

I would recommend you read this page.

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

It will show all the terminal emulators present on your system that can be used as default. The current default terminal is marked with the asterisk.

All you have to do is to enter the selection number.

Share:
9,963
Huy Duy
Author by

Huy Duy

Love exploring new things.

Updated on September 18, 2022

Comments

  • Huy Duy
    Huy Duy almost 2 years

    I currently using Alacritty terminal. Shortcut works fine. But when I click "Open in Terminal" in context menu, it still pops up the gnome terminal. So is there any way I could change to Alacritty?

  • Huy Duy
    Huy Duy about 4 years
    I did this solution already. As I mentioned above, shortcut works fine but the "Open in Terminal" still opens Gnome terminal.
  • walttheboss
    walttheboss about 4 years
    Thanks for clarifying. I thought that changing the default would correct the problem. If you want a particular file type to be opened in terminal then you can associate that with alacrity. Right click then adjust file type options to your liking. Then you can "open with" and pick terminal.
  • Rishabh
    Rishabh over 3 years
    Thank you @israteneda this worked for me.