简体   繁体   English

删除 gnome 终端配置

[英]Delete gnome terminal configuration

I made a mistake in my gnome terminal configuration.我在我的 gnome 终端配置中犯了一个错误。 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??我在首选项中输入了一个开始的命令,但是该命令失败了,现在我得到的只是一个 window 立即打开和关闭,我基本上不能再使用 gnome 终端了:-( 有什么办法可以吗删除配置文件并重新启动??

Thanks!谢谢!

Open the XTerm (Standard terminal for linux) and enter this command打开 XTerm(Linux 的标准终端)并输入此命令

gnome-terminal -e bash侏儒终端-e bash

It opens the gnome-terminal.它打开了 gnome 终端。 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:如果您在使用 dconf 的较新的 gnome 终端上,这有点棘手,但仍然可行:

Profiles are stored with a UUID, you need to find the UUID of the profile to remove:配置文件使用 UUID 存储,您需要找到要删除的配置文件的 UUID:

dconf dump /org/gnome/terminal/ | less

Search for a visible-name='...' entry matching the profile you want to remove.搜索与您要删除的配置文件匹配的visible-name='...'条目。 Look above that for the section header like [legacy/profiles:/:...] .在上面查看 header 部分,如[legacy/profiles:/:...] The full name of the item you want to delete is thus /org/gnome/terminal/legacy/profiles:/:... .因此,您要删除的项目的全名是/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.旁注:此问答可能应移至 unix.stackexchange.com。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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