删除 gnome 终端配置
我在 gnome 终端配置中犯了一个错误。我在首选项中输入了一个命令来启动,但该命令失败了,现在我得到的只是一个立即打开和关闭的窗口,我基本上无法再使用 gnome 终端了:-( 有什么办法可以删除配置文件并重新启动?
谢谢!
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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
打开 XTerm(Linux 标准终端)并输入此命令
它打开 gnome-terminal。打开配置文件首选项并将您的终端配置为“保持终端打开”。
编辑偏好设置
Open the XTerm (Standard terminal for linux) and enter this command
It opens the gnome-terminal. Open profile preferences and configure your terminal to "Hold the terminal open".
Editing preferences
上面的文件可能会令人感兴趣,具体取决于您更改的配置。当然,它也保存其他程序的配置。
the above file might be of interest depending on exactly what configuration you changed. Of course, it holds configuration from other programs as well.
如果您使用的是使用 dconf 的较新 gnome 终端,这有点棘手,但仍然可行:
配置文件使用 UUID 存储,您需要找到要删除的配置文件的 UUID:
搜索
visible-name= '...'
条目与您要删除的配置文件匹配。查看上面的节标题,例如[legacy/profiles:/:...]
。您要删除的项目的全名是/org/gnome/terminal/legacy/profiles:/:...
。因此删除它:旁注:此问答可能应该移至 unix.stackexchange.com。
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:
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:Side note: This Q&A probably should be moved to unix.stackexchange.com.