diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-01-26 15:16:39 +0100 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2021-01-26 15:16:52 +0100 |
commit | 422482e2f1a1392297b2a5a2a2ad2d583f4910df (patch) | |
tree | 3773427daf6393861ab698ea22050aaba8708845 | |
parent | 9ccedfdc768be368140c01c39087a3f7ef66107e (diff) | |
download | ayatana-webmail-422482e2f1a1392297b2a5a2a2ad2d583f4910df.tar.gz ayatana-webmail-422482e2f1a1392297b2a5a2a2ad2d583f4910df.tar.bz2 ayatana-webmail-422482e2f1a1392297b2a5a2a2ad2d583f4910df.zip |
ayatanawebmail/application.py: If no Ayatana Indicator Application is running, still attempt loading the AyatanaAppIndicator GIO module before falling back to the (dead and rotten) AppIndicator GIO module.
-rwxr-xr-x | ayatanawebmail/application.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/ayatanawebmail/application.py b/ayatanawebmail/application.py index 2e84b04..72e4043 100755 --- a/ayatanawebmail/application.py +++ b/ayatanawebmail/application.py @@ -175,7 +175,7 @@ class MessagingMenu(object): return - if 'ayatana-indicator-application-service' in lstProcesses: + else: try: @@ -187,11 +187,6 @@ class MessagingMenu(object): gi.require_version('AppIndicator3', '0.1') self.oAppIndicator = importlib.import_module('gi.repository.AppIndicator3') - if not self.oAppIndicator: - - gi.require_version('AppIndicator3', '0.1') - self.oAppIndicator = importlib.import_module('gi.repository.AppIndicator3') - self.oIndicator = self.oAppIndicator.Indicator.new(APPNAME, 'indicator-messages', self.oAppIndicator.IndicatorCategory.APPLICATION_STATUS) self.oIndicator.set_attention_icon('indicator-messages-new') self.oIndicator.set_status(self.oAppIndicator.IndicatorStatus.ACTIVE) |