如何使用 gsettings 配置具有可重定位架构的设置?

dob*_*bey 9 settings compiz

我正在尝试gsettings在终端中配置设置,以避免必须安装特殊的非默认应用程序来配置设置。但是,这样做时,会gsettings抱怨设置有一个relocatable schema并且什么也不做。

#: gsettings set org.compiz.unityshell dash-blur-experimental 1
架构“org.compiz.unityshell”是可重定位的(必须指定路径)

如何使用gsettings命令设置值?

dob*_*bey 11

您需要指定path实际存储设置的键。例如,对于这个键,你/org/compiz/profiles/unity/plugins/unityshell/在运行命令时需要使用路径,像这样:

#: gsettings set org.compiz.unityshell:/org/compiz/profiles/unity/plugins/unityshell/dash-blur-experimental 1

请注意,当为可重定位模式传入时,路径必须/字符结尾。

  • 如何找到特定方案所需的路径? (3认同)