哪个 gsettings 模式控制“在菜单栏中显示我的登录名”?

哪个 gsettings 模式控制“在菜单栏中显示我的登录名”?

我想编写脚本来启用 Ubuntu 的“在菜单栏中显示我的登录名”。该复选框位于 GUI 中的“系统设置”>“用户帐户”下。

我假设可以使用 gsettings 编写脚本。我已经使用 grep 查找了 gsettings get-schemas 中显而易见的术语(用户、菜单、帐户),但这些架构中的键看起来都不太靠谱。

我还使用 gsettings 监视有希望命名的模式,同时在 UI 中切换复选框;但没有成功。

有人有想法吗?

答案1

演出名称:

settings set com.canonical.indicator.session show-real-name-on-panel true

隐藏姓名:

settings set com.canonical.indicator.session show-real-name-on-panel false

相关内容