Answers:
从14.04开始
dconf dump /org/compiz/profiles/unity/ | grep active-plugins
在终端中运行。这会给你一些东西
active-plugins=['core', 'composite', 'opengl', 'wall', 'resize', 'vpswitch', 'compiztoolbox', 'move', 'snap', 'grid', 'imgpng', 'commands', 'unitymtgrabhandles', 'mousepoll', 'place', 'copytex', 'regex', 'session', 'animation', 'fade', 'expo', 'workarounds', 'ezoom', 'scale', 'unityshell']
请参阅答案https://askubuntu.com/a/320677/10475
通常,您可以使用gsettings中的供应商替代进行系统范围的设置。由于不可能编写包含DConf路径的模式覆盖文件(另请参阅#1281580),因此必须直接在dconf中设置设置:
第1步:创建一个文件,user
在/etc/dconf/profile/
这个内容:
user-db:user
system-db:compiz
第2步:创建一个文件夹compiz.d
中/etc/dconf/db/
第3步:
创建文件00_default_plugins
中/etc/dconf/db/compiz.d/
,并把_your list of plugins_
内(运行dconf dump /org/compiz/profiles/unity/ | grep active-plugins
,让您的实际激活的插件列表)。
例:
[org/compiz/profiles/unity/plugins/core]
active-plugins=['core', 'composite', 'opengl', 'move', 'vpswitch', 'copytex', 'grid', 'commands', 'snap', 'compiztoolbox', 'mousepoll', 'place', 'resize', 'imgpng', 'session', 'wall', 'regex', 'unitymtgrabhandles', 'animation', 'winrules', 'fade', 'workarounds', 'expo', 'scale', 'ezoom', 'unityshell']
步骤4:
将此设置设为必填项。在其中创建一个文件夹locks
,/etc/dconf/db/compiz.d/
并在其中放置一个以00_compiz_active_plugins
该内容命名的文件:
/org/compiz/profiles/unity/plugins/core/active-plugins
步骤5:sudo dconf update
在终端中运行以进行编译。
现在,您可以打开一个访客会话,并检查该设置是否已应用。
注意:您可以system-db
按自己喜欢的方式命名,但请记住,compiz.d
在我的示例中,该文件夹的名称必须system-db
与带有.d
附加名称的文件夹相同。
学分:
https : //wiki.gnome.org/Projects/dconf/SystemAdministrators
http://blog.chapus.net/more-gnome-unity-system-defaults/
至少在11.04和11.10中,这会在方括号内为您提供已启用插件的列表。[]
gconftool-2 --get /apps/compiz-1/general/screen0/options/active_plugins
您可以使用该列表,添加或减去,然后使用“设置在方括号“ []”中进行设置
gconftool-2 --set --type=list --list-type=string /apps/compiz-1/general/screen0/options/active_plugins "[list,goes,in,here]"
$ gconftool-2 --get /apps/compiz-1/general/screen0/options/active_plugins No value set for '/apps/compiz-1/general/screen0/options/active_plugins'