问题标签 [gsettings]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
glib - GLib-GIO-ERROR **:未安装设置架构“com.github.mfru.vala-todo”
首先,我是和的新手Vala
,所以我可能正在寻找完全错误的方向。Gtk
Meson
我在 Pop_OS 上运行!20.10。
我想编译一个支持 GSettings 的小示例 Vala 应用程序。
但是,当编译ninja
,安装sudo ninja install
然后执行时,我得到了标题中提到的错误。
似乎即使我的 gschema 文件被复制到/usr/share/glib-2.0/schemas
,glib-compile-schemas
在我的安装后脚本中运行也没有做任何事情。
我还可以通过glib-compile-schemas
手动运行然后使用 dconf Editor 检查我的设置是否可用来确认。
数据/gschema.xml
数据/介子.build
介子/安装后.py
meson build --prefix=/usr --reconfigure
我还用最初指向的前缀重新配置了介子前缀,/usr/local
但我系统上的所有现有模式都在/usr/share
最后,我期望发生的是我的示例应用程序启动时不会因为缺少 GSettings 而崩溃。
我研究的资源:
https://mesonbuild.com/Configuring-a-build-directory.html
https://developer.gnome.org/gio/stable/glib-compile-schemas.html
docker - docker容器内的dbus和gesettings错误
在使用命令RUN apt-get install -y dbus
构建然后运行容器后,我尝试使用命令更改系统代理,gsettings set org.gnome.system.proxy.https host 'proxy-adress'
但我得到了输出failed to commit changes to dconf: Failed to execute child process ?dbus-launch? (No such file or directory)
。我假设没有安装 dbus,所以我检查了路径,whereis dbus
但输出为空。它会自行卸载吗?