Skip to content

Commit

Permalink
AyatanaAppIndicator3 is AppIndicator3
Browse files Browse the repository at this point in the history
but we have to try to load the new name...
  • Loading branch information
totaam committed Mar 17, 2023
1 parent ebfdcca commit 1058a9e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions xpra/platform/xposix/appindicator_tray.py
Expand Up @@ -23,8 +23,12 @@
from xpra.log import Logger

import gi
gi.require_version('AppIndicator3', '0.1')
from gi.repository import AppIndicator3 #pylint: disable=wrong-import-order, wrong-import-position, ungrouped-imports
try:
gi.require_version("AyatanaAppIndicator3", "0.1") # @UndefinedVariable
from gi.repository import AyatanaAppIndicator3 as AppIndicator3 #pylint: disable=wrong-import-order, wrong-import-position, ungrouped-imports
except ImportError:
gi.require_version("AppIndicator3", "0.1") # @UndefinedVariable
from gi.repository import AppIndicator3 #pylint: disable=wrong-import-order, wrong-import-position, ungrouped-imports

log = Logger("tray", "posix")

Expand Down

0 comments on commit 1058a9e

Please sign in to comment.