Software & AppsOperating SystemLinux

How To Change Default Terminal in Gnome-Shell

Ubuntu 15

In this article, we’ll guide you through the process of changing the default terminal in Gnome-Shell. This can be useful if you have a preferred terminal emulator other than the one that comes pre-installed. We’ll cover several methods, including using the update-alternatives command, modifying the Gnome application, using the gsettings command, and using Nautilus Actions.

Quick Answer

To change the default terminal in Gnome-Shell, you can use the update-alternatives command, modify the Gnome application’s desktop file, use the gsettings command, or utilize Nautilus Actions. These methods allow you to set your preferred terminal emulator as the default, giving you a more personalized experience.

Using update-alternatives Command

The update-alternatives command is a powerful tool that allows you to manage the default applications on your system. Here’s how you can use it to change your default terminal:

  1. Open a terminal and run the following command:
sudo update-alternatives --config x-terminal-emulator

This command lists all the terminal emulators installed on your system. The --config option allows you to configure the specified group, in this case, the x-terminal-emulator.

  1. From the list that appears, select the number corresponding to your preferred terminal emulator and press Enter.

Modifying the Gnome Application

Another way to change the default terminal is by modifying the Gnome application’s desktop file. Here’s how:

  1. Open the terminal application’s desktop file located at /usr/share/applications/org.gnome.Terminal.desktop using a text editor. The path may vary depending on your system.
sudo nano /usr/share/applications/org.gnome.Terminal.desktop
  1. Find the “TryExec” and “Exec” lines and replace gnome-terminal with the command to launch your preferred terminal emulator.
  2. Save the changes and restart the terminal.

Using gsettings Command

The gsettings command is a command-line interface to GSettings, which you can use to change your default terminal:

  1. Open a terminal and run the following command:
gsettings set org.cinnamon.desktop.default-applications.terminal exec <terminal-emulator>

Replace <terminal-emulator> with the command to launch your preferred terminal emulator. Depending on your desktop environment, you may need to replace org.cinnamon.desktop with org.gnome.desktop or org.kde.desktop.

Using Nautilus Actions

Nautilus Actions is a tool that allows you to configure custom actions for the Nautilus file manager:

  1. Install the nautilus-open-terminal and nautilus-actions packages using the following command:
sudo apt-get install nautilus-open-terminal nautilus-actions
  1. Open the Nautilus Actions configuration tool and set your preferred terminal emulator as the default for the “Open in Terminal” action.

This method is particularly useful if you often open the terminal from the file explorer.

Conclusion

Changing the default terminal in Gnome-Shell can be done in several ways, depending on your preferences and comfort with different methods. Always be cautious when modifying system files or settings, as it can have unintended consequences or cause issues during system upgrades. If you follow the steps outlined in this article, you should be able to change your default terminal with ease.

What is Gnome-Shell?

Gnome-Shell is the default desktop environment for the GNOME desktop environment. It provides the graphical user interface and various features for the GNOME desktop.

How do I open a terminal in Gnome-Shell?

To open a terminal in Gnome-Shell, you can use the keyboard shortcut Ctrl + Alt + T. Alternatively, you can search for "Terminal" in the Activities Overview and click on the terminal icon.

Can I have multiple terminal emulators installed on my system?

Yes, you can have multiple terminal emulators installed on your system. You can choose which one to use as the default terminal, as explained in the article.

What are some popular terminal emulators other than the default Gnome Terminal?

Some popular terminal emulators other than Gnome Terminal include Terminator, Tilix, Konsole, and Alacritty. These terminal emulators offer additional features and customization options.

Are there any risks in modifying system files or settings?

Yes, there can be risks in modifying system files or settings. It is always recommended to proceed with caution and make backups before making any changes. Modifying system files or settings incorrectly can lead to system instability or issues during system upgrades.

How can I revert back to the default terminal if I change it?

If you want to revert back to the default terminal, you can use the same methods mentioned in the article to change the default terminal. Simply select the number corresponding to the default terminal emulator during the update-alternatives command or revert the changes made to the Gnome application’s desktop file or gsettings command.

Leave a Comment

Your email address will not be published. Required fields are marked *