如何在没有列出架构的情况下使用gsettings

我想编写一个脚本来重新排序compiz模块的加载,因此在使用Unity桌面时,最后加载expo和scale,并且这些插件中的set hotcorners将在重新启动时保持活动状态。 这可以使用gui dconf-editor轻松完成。 但是,只要对统一进行更新,此设置将恢复为最后加载Unity模块的默认设置,并终止热门角色。

所以需要一个cli方法来更改位于org / compiz / profiles / unity / plugins / core的dconf-editor中的设置

[‘core’,’composite’,’opengl’,’copytex’,’decor’,’regex’,’compiztoolbox’,’place’,’imgpng’,’grid’,’unitymtgrabhandles’,’resize’,’ mousepoll’,’snap’,’gnomecompat’,’move’,’vpswitch’,’session’,’wall’,’animation’,’workarounds’,’expo’,’scale’,’fade’,’ezoom’ ,’unityshell’]

[‘core’,’composite’,’opengl’,’copytex’,’decor’,’regex’,’compiztoolbox’,’place’,’imgpng’,’grid’,’unitymtgrabhandles’,’resize’,’ mousepoll’,’snap’,’gnomecompat’,’move’,’vpswitch’,’session’,’wall’,’animation’,’workarounds’,’fade’,’ezoom’,’unityshell’,’expo’ ,’规模’]

所以发出命令

gsettings list-schemas | grep -i compiz 

表明我没有需要改变的模式,所以要改为

 gsettings list-recursively | grep -i compiz 

给出了更长的列表,但对我的项目没什么用处。 我哪里出错了或者我的问题有另一种解决办法吗?

我希望它是这样,在值中添加“引号”作为设置字符串所需的正确GVariant格式的一部分。

 gsettings set org.compiz.core:/org/compiz/profiles/unity/plugins/core/ active-plugins \ "['core', 'composite', 'opengl', 'copytex', 'decor', 'regex', 'compiztoolbox', 'place' ,'imgpng', 'grid', 'unitymtgrabhandles', 'resize', 'mousepoll', 'snap', 'gnomecompat', 'move', 'vpswitch', 'session', 'wall', 'animation', 'workarounds', 'fade', 'ezoom', 'unityshell', 'expo', 'scale']"