当我从终端启动 okular 时,我收到一堆关于某些图标主题文件夹的“无效上下文”警告(均来自 Yaru,这是 Gnome Tweaks 和 Adwaita 中设置的主题)。编辑要排除的命名目录的index.theme会删除警告,但会破坏一些UI(顶部栏设置中的小箭头变成交叉圆圈禁止图标),我想这是可以预料的。
谷歌搜索显示,这种情况发生在很多人的各种应用程序上,但我发现的解决方案不适用(特定于应用程序或 Arch)。
奥库拉似乎工作得很好。我最近从 19.10 升级到 20.4,但在此之前也存在该错误。
有谁知道我为什么收到这些警告或如何解决它们?
完整的命令行输出:
Warning: Ignoring XDG_SESSION_TYPE=wayland on Gnome. Use QT_QPA_PLATFORM=wayland to run on Wayland anyway.
Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Yaru/16x16/legacy/"
Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Yaru/22x22/legacy/"
Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Yaru/24x24/legacy/"
Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Yaru/32x32/legacy/"
Invalid Context= "Legacy" line for icon theme: "/usr/share/icons/Yaru/48x48/legacy/"
Invalid Context= "Apps" line for icon theme: "/usr/share/icons/Yaru/256x256@2x/apps/"
Invalid Context= "Mimetypes" …Run Code Online (Sandbox Code Playgroud)