Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

How can I set the default terminal used in Unity?

I would like to use the Ctrl+Alt+T hotkey to start a non-default terminal. The default terminal is gnome-terminal.

Where can I change the default terminal value?

share|improve this question

10 Answers 10

For 12.04 and newer

gconf is now deprecated - http://en.wikipedia.org/wiki/GConf - and gsettings can be used in its place.

gsettings set org.gnome.desktop.default-applications.terminal exec 'konsole'
share|improve this answer
    
I have installed terminator as terminal and uninstalled gnome-terminal but the command you suggested does not work for me. –  Gaurav Agarwal Apr 9 at 9:59
    
Works fine for me on 13.10. –  Misha Rogalla Apr 10 at 11:29
up vote 34 down vote accepted

Only in Ubuntu 11.10 or earlier! For newer versions see LucaB answer!

Open a terminal (e.g. gnome-terminal)

Run the next command:

gconftool --type string --set /desktop/gnome/applications/terminal/exec <YOUR-TERMINAL>

e.g.:

gconftool --type string --set /desktop/gnome/applications/terminal/exec terminator

Done :).

share|improve this answer
4  
This doesn't fix it for me. When I start Htop via its .desktop file (which specifies Terminal=True), it starts in Gnome Terminal no matter what. Is there yet another place to change the default terminal emulator? –  Ryan Thompson May 4 '12 at 1:05
2  
THE CORRECT ANSWER IS BELLOW! –  Gerep Sep 10 '13 at 13:22
    
@gerep My answer is correct, because the question defined exactly the Ubuntu version: 11.10. Of course in the newer versions the gconftool is deprecated, so not this the right solution. –  Regisz Sep 12 '13 at 9:28
sudo update-alternatives --config x-terminal-emulator
share|improve this answer
3  
While this is a great answer to the question (and generally a preferrable way to change a default program IMHO) this may not be the 'weapon of choice' in all circumstances. To elaborate: I wanted to set guake terminal as default but it never showed when trying to do so by update-alternatives. –  FuzzyQ Aug 4 '12 at 17:13
1  
Also, You can edit directly to the script xdg-open :) sudo gedit `which xdg-open` –  iegik Aug 6 '12 at 9:40

To change the shortcut and not default termainal,

  1. search for keyboard
  2. go to shortcuts and custom shortcuts
  3. press the plus sign to add new shortcut (in this case terminator)
  4. when told that the shortcut ctrl+alt+t is already in use press "reasign"

search for keyboard add new shortcut reasign

share|improve this answer
    
Exactly what I was looking for, thank you! –  John Hamelink Sep 26 '12 at 0:44
    
Good Answer.Very helpful –  Ravs Oct 15 '13 at 17:32
    
does not work for me. –  Gaurav Agarwal Mar 23 at 18:26

To configure the default terminal in gnome you need to install dconf-tools (sudo apt-get install dconf-tools).

After that you can use the gsettings to set your favorite terminal emulator.

Lets say your favourite terminal emulator is termite.

Install it with sudo apt-get install termite

After that type this command

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

Since termite does not take any arguments (or it does, depends on what you do with it, you can set them this way) use this to set empty or set the exec-args for the terminal you need

gsettings set org.gnome.desktop.default-applications.terminal exec-arg ""

After this termite will be your default terminal emulator.

share|improve this answer
    
there is another way outlined in askubuntu.com/questions/70540/… –  krumpelstiltskin Nov 16 '11 at 21:15
    
Its the same thing, really does not mater, this way uses the replacement tool for gconf –  Bruno Pereira Nov 16 '11 at 21:22
    
exec-arg didn't work for me unfortunately. I was trying to start terminal in fullscreen mode. The only option that helped was specifying the option in configuration. I am using terminator –  Tim Oct 29 '12 at 20:57

Try to change option x-terminal-emulator via "ALternatives Configurator" app.

share|improve this answer
2  
a little bit helping: 'Alternatives Configurator' is 'galternatives' –  Regisz Oct 26 '11 at 14:20

Try

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

share|improve this answer
1  
Hmm, on second thought, this doesn't seem to be updating it. –  Kris Harper Oct 26 '11 at 19:21
    
This works perfectly. Thank you. –  lujbilami Apr 7 '13 at 15:56

The update-alternatives system is a Debian thing, but Gnome run on many more distributions, so it has its own way to define preferred applications.

You can set default terminal through the utility gnome-default-applications-properties, also accessible through gnome-control-center as Preferred Applications.

Alternatively you can set the gconf registry key /desktop/gnome/applications/terminal/exec.

However, it is not guaranteed that all applications provided by Gnome, like nautilus, will respect this setting, or rather use their own settings.

share|improve this answer

If you go to the Keyboard shortcuts, you will notice under the Launcher section that Ctrl+Alt+T is tied to the "Launch Terminal" action. I haven't tested it yet, but you can create a Custom Shortcut to your preferred Terminal, and bind that shortcut to it instead.

share|improve this answer

This worked in Ubuntu 13.10

gsettings set org.gnome.desktop.default-applications.terminal exec terminator
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.