简体   繁体   中英

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!

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

$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.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM