bob*_*cat 6 indicator python 20.04
AppIndicator
允许您的应用程序在 GNOME 中创建菜单,如下所示:
具体来说,使用python-appindicator
,您可以在 Python 中完成。然而,它似乎python-appindicator
在最新的 Linux 发行版中消失了,包括Ubuntu 20.04
.
有替代品吗?我找不到太多。
顺便说一句,我希望同一个库可以在不同的桌面上工作,比如 KDE 和 GNOME,但AppIndicator
我相信它只适用于 GNOME。
我认为python-appindicator
package 已被弃用,建议使用 GObject 绑定。Appindicator 有 GObject 绑定,据我所知应该使用它们。
ubuntu 中有两个用于 python 绑定的包appindicator
。一个是基于libappindicator
,另一个是基于libayatana-appindicator
我不知道两者之间的核心区别,但我的猜测是ayatana-appindicator
为了名称清晰起见是最新的,并且也可以在其他发行版中使用。
包名称是:
gir1.2-appindicator
gir1.2-appindicator3
。gir1.2-ayatanaappindicator
gir1.2-ayatanaappindicator3
。后缀3
1 用于gtk3
并可用于 gtk3 相关应用程序。
这是我自己的用例,它在面板中显示我的本机日历。下面显示的是 gnome-shell 中使用 kappindicator 扩展以及 dropbox 的用法。
基本上,有关文档,请参阅https://lazka.github.io/pgi-docs/AyatanaAppIndicator3-0.1/index.html
PS 该图像来自 Fedora,因为我目前使用的是带有 gnome-shell 3.38 的 Fedora 桌面。我认为 ubuntu 附带了https://packages.ubuntu.com/focal/gnome-shell-extension-appindicator,它可用于显示状态托盘和现有应用程序指示器。我目前用它zoom
来dropbox
等
归档时间: |
|
查看次数: |
4565 次 |
最近记录: |