使用 gsettings 未找到 compiz-plugins 架构

使用 gsettings 未找到 compiz-plugins 架构

compiz-plugins我已为 CompizConfig 设置管理器 ()安装了额外的插件 ( ) compizconfig-settings-manager,并尝试使用从命令行更改这些设置gsettings

问题是这些模式都找不到gsettings list-recursively,我不明白为什么。

根据我的理解,模式是通过环境变量找到的XDG_DATA_DIRS,当前是这样的(Ubuntu 12.10 的默认设置):

ben@ben-HPdv6:~$ echo $XDG_DATA_DIRS 
/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/

通过使用命令搜索模式文件,locate我发现了我认为丢失的模式文件,如下所示:

ben@ben-HPdv6:~$ locate .schemas | grep "compiz"
/usr/share/gconf/schemas/compiz-addhelper.schemas
/usr/share/gconf/schemas/compiz-animation.schemas
/usr/share/gconf/schemas/compiz-annotate.schemas
/usr/share/gconf/schemas/compiz-bench.schemas
/usr/share/gconf/schemas/compiz-ccp.schemas
/usr/share/gconf/schemas/compiz-clone.schemas
/usr/share/gconf/schemas/compiz-commands.schemas
/usr/share/gconf/schemas/compiz-compiztoolbox.schemas
/usr/share/gconf/schemas/compiz-composite.schemas
/usr/share/gconf/schemas/compiz-copytex.schemas
/usr/share/gconf/schemas/compiz-crashhandler.schemas
/usr/share/gconf/schemas/compiz-cube.schemas
/usr/share/gconf/schemas/compiz-dbus.schemas
/usr/share/gconf/schemas/compiz-decor.schemas
/usr/share/gconf/schemas/compiz-expo.schemas
/usr/share/gconf/schemas/compiz-extrawm.schemas
/usr/share/gconf/schemas/compiz-ezoom.schemas
/usr/share/gconf/schemas/compiz-fade.schemas
/usr/share/gconf/schemas/compiz-fadedesktop.schemas
/usr/share/gconf/schemas/compiz-firepaint.schemas
/usr/share/gconf/schemas/compiz-gnomecompat.schemas
/usr/share/gconf/schemas/compiz-grid.schemas
/usr/share/gconf/schemas/compiz-imgjpeg.schemas
/usr/share/gconf/schemas/compiz-imgpng.schemas
/usr/share/gconf/schemas/compiz-imgsvg.schemas
/usr/share/gconf/schemas/compiz-inotify.schemas
/usr/share/gconf/schemas/compiz-kdecompat.schemas
/usr/share/gconf/schemas/compiz-mag.schemas
/usr/share/gconf/schemas/compiz-maximumize.schemas
/usr/share/gconf/schemas/compiz-mblur.schemas
/usr/share/gconf/schemas/compiz-mousepoll.schemas
/usr/share/gconf/schemas/compiz-move.schemas
/usr/share/gconf/schemas/compiz-neg.schemas
/usr/share/gconf/schemas/compiz-notification.schemas
/usr/share/gconf/schemas/compiz-obs.schemas
/usr/share/gconf/schemas/compiz-opacify.schemas
/usr/share/gconf/schemas/compiz-opengl.schemas
/usr/share/gconf/schemas/compiz-place.schemas
/usr/share/gconf/schemas/compiz-put.schemas
/usr/share/gconf/schemas/compiz-regex.schemas
/usr/share/gconf/schemas/compiz-resize.schemas
/usr/share/gconf/schemas/compiz-resizeinfo.schemas
/usr/share/gconf/schemas/compiz-ring.schemas
/usr/share/gconf/schemas/compiz-rotate.schemas
/usr/share/gconf/schemas/compiz-scale.schemas
/usr/share/gconf/schemas/compiz-scaleaddon.schemas
/usr/share/gconf/schemas/compiz-scalefilter.schemas
/usr/share/gconf/schemas/compiz-screenshot.schemas
/usr/share/gconf/schemas/compiz-session.schemas
/usr/share/gconf/schemas/compiz-shelf.schemas
/usr/share/gconf/schemas/compiz-shift.schemas
/usr/share/gconf/schemas/compiz-showdesktop.schemas
/usr/share/gconf/schemas/compiz-showmouse.schemas
/usr/share/gconf/schemas/compiz-showrepaint.schemas
/usr/share/gconf/schemas/compiz-snap.schemas
/usr/share/gconf/schemas/compiz-splash.schemas
/usr/share/gconf/schemas/compiz-staticswitcher.schemas
/usr/share/gconf/schemas/compiz-switcher.schemas
/usr/share/gconf/schemas/compiz-td.schemas
/usr/share/gconf/schemas/compiz-text.schemas
/usr/share/gconf/schemas/compiz-titleinfo.schemas
/usr/share/gconf/schemas/compiz-trailfocus.schemas
/usr/share/gconf/schemas/compiz-vpswitch.schemas
/usr/share/gconf/schemas/compiz-wall.schemas
/usr/share/gconf/schemas/compiz-water.schemas
/usr/share/gconf/schemas/compiz-widget.schemas
/usr/share/gconf/schemas/compiz-winrules.schemas
/usr/share/gconf/schemas/compiz-wobbly.schemas
/usr/share/gconf/schemas/compiz-workarounds.schemas
/usr/share/gconf/schemas/compiz-workspacenames.schemas

它们都在其中,/usr/share/gconf/schemas/usr/share/默认架构查找环境变量的一部分XDG_DATA_DIRS。所以我不明白为什么它们没有出现在gsettings

是否有我遗漏的“刷新模式列表”命令,或者它没有在目录中递归查找(看起来很奇怪,因为这个目录中还有其他模式文件)或者我没有正确理解它的gsettings工作原理?

答案1

举个例子就简单多了:

gsettings set org.compiz.expo:/org/compiz/profiles/unity/plugins/expo/ expo-button "Button10"

org.compiz.expo 是模式(单词之间用点分隔),您可以在 /usr/share/glib-2.0/schemas/ 中找到所有模式,模式的名称是不带 .gschema.xml 部分的文件名。

/org/compiz/profiles/unity/plugins/expo/ 是路径(单词之间用斜杠分隔),如果您在 dconf-editor 中寻找它,就会在这里找到它。

expo-button 是关键,它是你想要设置的

“Button10”是您设置键的值。

在某些情况下,您不需要路径(模式不可重定位),如果在 dconf-editor 下看到“无模式”那么它是可重定位的,然后您可以删除 :/path/ 部分。

相关内容