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 <phrdina@redhat.com>
This commit is contained in:
Pavel Hrdina 2024-10-13 17:16:53 +02:00 committed by Pino Toscano
parent 31eab9b46a
commit 3006c5a1d5

View File

@ -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