Skip to content

Commit

Permalink
Prefer using AyatanaAppIndicator3over AppIndicator3; use AppIndicator…
Browse files Browse the repository at this point in the history
…3 as fallback.
  • Loading branch information
sunweaver authored and flexiondotorg committed Aug 24, 2020
1 parent 8eed116 commit 78de348
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions usr/bin/mate-optimus-applet
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ from gi.repository import Gtk
gi.require_version('Notify', '0.7')
from gi.repository import Notify

gi.require_version('AppIndicator3', '0.1')
from gi.repository import AppIndicator3
try:
gi.require_version('AyatanaAppIndicator3', '0.1')
from gi.repository import AyatanaAppIndicator3 as AppIndicator3
except:
gi.require_version('AppIndicator3', '0.1')
from gi.repository import AppIndicator3

__VERSION__ = '20.04.0'

Expand Down

0 comments on commit 78de348

Please sign in to comment.