[GTKUI] Support using the Ayatana fork of indicators.
As this fork is maintained in Debian, and as of Impish/21.10 is the supported variant in Ubuntu as well. Closes: deluge-torrent/deluge#317
This commit is contained in:
parent
5f6f65a065
commit
9194092d7b
@ -30,6 +30,10 @@ from .common import build_menu_radio_list, get_logo
|
|||||||
from .dialogs import OtherDialog
|
from .dialogs import OtherDialog
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
try:
|
||||||
|
require_version('AyatanaAppIndicator3', '0.1')
|
||||||
|
from gi.repository import AyatanaAppIndicator3 as AppIndicator3
|
||||||
|
except (ValueError, ImportError):
|
||||||
require_version('AppIndicator3', '0.1')
|
require_version('AppIndicator3', '0.1')
|
||||||
from gi.repository import AppIndicator3
|
from gi.repository import AppIndicator3
|
||||||
except (ValueError, ImportError):
|
except (ValueError, ImportError):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user