Where are Gnome-Terminal profiles stored in the filesystem?

I created a new profile that opened with the fortune program (atp-get install fortune-mod for the download location) and set it as the profile with which to open all new terminals with so that I would get a new fortune when I opened terminal. Unfortunately I didn't know to set "exit terminal when process exits" to something else so that it wouldn't exit out almost immediately. Currently it does exit as soon as fortune exits which is nearly immediately and I need to delete the profile but i cant through the terminal "manage profiles" option because it exits too quickly to even try and open the edit menu let alone delete the profile. I need to know what directory the profile is saved to so that i can delete is manually. I tried to do a system wide search but the results of that search was tons of files and folders and I don't have time to open them all. I appreciate all help i can get. Thanks in advance.


Profiles for GNOME Terminal are stored in the GConf configuration system. To modify them directly, press Alt+F2 to display the "Run a command" box, enter gconf-editor, and then browse to /apps/gnome-terminal/profiles.

Unchecking /apps/gnome-terminal/profiles/Default/use_custom_command should solve your problem.

An alternative method for getting out of this situation is to override the custom command by specifying another as a command-line argument, e.g. gnome-terminal -x bash, once again in the "Run a command" box.


You can also run xterm, another terminal emulator that is available in Ubuntu. From there you can run any commands you need.

To make it the default terminal, run:

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

And change the default to whatever you want.

Another approach to fix Gnome Terminal is to use Nautilus (the file manager) to delete all custom preferences:

  • Navigate to ~/.gconf/apps/gnome-terminal (it's a hidden folder, hit CTRL+H to view)
  • Edit the xml files there, or simply delete the whole gnome-terminal folder
  • Open your Gnome Terminal again, it will be restored with factory settings