mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-01-11 05:17:59 +03:00
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:
parent
ddc55c8ba5
commit
ac7e6a0966
@ -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):
|
||||
|
Loading…
Reference in New Issue
Block a user