0

当我尝试运行我的 gtk-rs 项目时,它显示此错误: Failed to load module "appmenu-gtk-module"

还有这个错误: Failed to register: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: org.freedesktop.DBus.Error.ServiceUnknown

我的 toml 文件如下所示:

[package]
name = "something"
version = "0.1.0"
authors = ["gd"]
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
gtk = { git = "https://github.com/gtk-rs/gtk.git" }
gio = { git = "https://github.com/gtk-rs/gio.git" }

我尝试重新安装 appmenu-gtk3-module/appmenu-gtk2-module:

sudo apt reinstall appmenu-gtk3-module appmenu-gtk2-module

我使用流行操作系统(Ubuntu)。

4

0 回答 0