From ba5edd93a4c8589cd06f8df804e393e73c4de9cb Mon Sep 17 00:00:00 2001 From: yutent Date: Mon, 24 Jul 2023 19:39:00 +0800 Subject: [PATCH] depends --- notes/tray.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/notes/tray.py b/notes/tray.py index 652b529..3e44f52 100644 --- a/notes/tray.py +++ b/notes/tray.py @@ -5,11 +5,13 @@ import gi, platform gi.require_version("Gtk", "3.0") from gi.repository import Gtk +# 需要安装这个包 gir1.2-gdkpixbuf-2.0 from gi.repository.GdkPixbuf import Pixbuf # 优先尝试使用指示器, 没有再使用 Gtk.StatusIcon try: gi.require_version('AyatanaAppIndicator3', '0.1') + # 需要安装这个包 gir1.2-ayatanaappindicator3-0.1 from gi.repository import AyatanaAppIndicator3 as AppIndicator3 except (ValueError, ImportError): AppIndicator3 = None