mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-06 14:13:28 -06:00
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:
parent
31eab9b46a
commit
3006c5a1d5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user