首页 > 解决方案 > Fedora 30:GTK 无法加载 appmenu-gtk-module

问题描述

我正在学习用 Python 和 Rust 编程。在不同版本的 Ubuntu 上,这些程序可以完美编译和运行。现在我有一个专用的 Fedora 30 KDE 系统,每次尝试构建程序时,我都会收到警告:Failed to load module "appmenu-gtk-module"

我已尝试查找此内容并在我的系统上重新/安装了任何 GTK。其他程序运行良好,但没有绘制菜单。我也在 GNOME 中尝试过,并且遇到了同样的问题。

我也在使用QT。这些程序也可以正常构建和运行,但同样没有菜单。

我要疯了。任何帮助表示赞赏。

标签: qtmenugtkfedora

解决方案


The appmenu-gtk module is not packaged on Fedora. (GNOME doesn't support them anyway.)

The real questions are:

Why is it configured to load? Did you copy or share GTK config files from an Ubuntu system? You should remove this module from your settings.

Even with improper configs I don't believe this should result in menus not appearing. It should just fail to load and work as normal. How is your application using menus?


推荐阅读