summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLaurent Bigonville <bigon@users.noreply.github.com>2020-11-15 17:52:51 +0100
committerCole Robinson <crobinso@redhat.com>2020-11-16 10:09:19 -0500
commitac7e6a09662d321841cddb0df4724b68156a5798 (patch)
tree0b54562ca92dbb80cfcbbc081ecd9cd8ea20d226
parentddc55c8ba54093c8ba262c6ef3f2f13a3be2995c (diff)
downloadvirt-manager-ac7e6a09662d321841cddb0df4724b68156a5798.tar.gz
Try to load AyatanaAppIndicator3 in addition of AppIndicator3
AyatanaAppIndicator3 is the successor or AppIndicator3 it uses the same API for the time being Just try to load AyatanaAppIndicator3 in addition of AppIndicator3 Fixes: #181
-rw-r--r--virtManager/systray.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/virtManager/systray.py b/virtManager/systray.py
index 4c4e7d29..83a4aadc 100644
--- a/virtManager/systray.py
+++ b/virtManager/systray.py
@@ -23,6 +23,11 @@ try:
from gi.repository import AppIndicator3
except Exception: # pragma: no cover
AppIndicator3 = None
+ try:
+ gi.require_version('AyatanaAppIndicator3', '0.1')
+ from gi.repository import AyatanaAppIndicator3 as AppIndicator3
+ except Exception: # pragma: no cover
+ AppIndicator3 = None
def _toggle_manager(*args, **kwargs):