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
This commit is contained in:
Laurent Bigonville 2020-11-15 17:52:51 +01:00 committed by Cole Robinson
parent ddc55c8ba5
commit ac7e6a0966

View File

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