Frank
Frank

Reputation: 4461

Delete gnome terminal configuration

I made a mistake in my gnome terminal configuration. I entered a command to start with in the preferences, but that command fails, and now all I get is a window that opens and closes right away, and I basically can't use gnome terminal anymore :-( Is there any way I can remove the configuration file and restart fresh??

Thanks!

Upvotes: 2

Views: 7037

Answers (3)

Rokin Maharjan
Rokin Maharjan

Reputation: 689

Open the XTerm (Standard terminal for linux) and enter this command

gnome-terminal -e bash

It opens the gnome-terminal. Open profile preferences and configure your terminal to "Hold the terminal open".

Editing preferences

Upvotes: 3

Cheetah
Cheetah

Reputation: 1161

If you are on the newer gnome terminal that uses dconf, it's a little trickier, but still doable:

Profiles are stored with a UUID, you need to find the UUID of the profile to remove:

dconf dump /org/gnome/terminal/ | less

Search for a visible-name='...' entry matching the profile you want to remove. Look above that for the section header like [legacy/profiles:/:...]. The full name of the item you want to delete is thus /org/gnome/terminal/legacy/profiles:/:.... Delete it thus:

dconf reset -f /org/gnome/terminal/legacy/profiles:/:...

Side note: This Q&A probably should be moved to unix.stackexchange.com.

Upvotes: 1

Seth Robertson
Seth Robertson

Reputation: 31451

$HOME/.gconfd/saved_state

the above file might be of interest depending on exactly what configuration you changed. Of course, it holds configuration from other programs as well.

Upvotes: 1

Related Questions