From 3006c5a1d561127c2c468c262fb97668d24e51b9 Mon Sep 17 00:00:00 2001 From: Pavel Hrdina Date: Sun, 13 Oct 2024 17:16:53 +0200 Subject: [PATCH] virtManager: drop libappindicator usage Latest upstream release was back in 2012 and the new libayatana-appindicator project is present in all distribution supported by libvirt. Signed-off-by: Pavel Hrdina --- virtManager/systray.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/virtManager/systray.py b/virtManager/systray.py index a3cef04a1..49804646e 100644 --- a/virtManager/systray.py +++ b/virtManager/systray.py @@ -19,8 +19,6 @@ from .connmanager import vmmConnectionManager # pylint: disable=ungrouped-imports -# Prefer AyatantaAppIndicator3 which is the modern maintained -# appindicator library. try: # pragma: no cover # pylint: disable=no-name-in-module gi.require_version('AyatanaAppIndicator3', '0.1') @@ -28,14 +26,6 @@ try: # pragma: no cover except Exception: # pragma: no cover AppIndicator3 = None -if not AppIndicator3: - try: # pragma: no cover - # pylint: disable=no-name-in-module - gi.require_version('AppIndicator3', '0.1') - from gi.repository import AppIndicator3 - except Exception: # pragma: no cover - AppIndicator3 = None - def _toggle_manager(*args, **kwargs): ignore = args