如何使用gsettings配置可重定位模式的设置?

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

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

如何使用gsettings命令设置值?

您需要指定实际存储设置的键的path 。 例如,对于此密钥,在运行命令时需要使用/org/compiz/profiles/unity/plugins/unityshell/ path,如下所示:

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

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