From e046455a05eac426ca7a8b315627469945948ccf Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Tue, 3 May 2016 20:20:46 +0100 Subject: [PATCH] Fix: "AppIndicator3 was imported without specifying a version first" PyGIWarning: AppIndicator3 was imported without specifying a version first. Use gi.require_version('AppIndicator3', '0.1') before import to ensure that the right version gets loaded. --- lib/solaar/ui/tray.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/solaar/ui/tray.py b/lib/solaar/ui/tray.py index 3aec1476..badf6200 100644 --- a/lib/solaar/ui/tray.py +++ b/lib/solaar/ui/tray.py @@ -144,7 +144,8 @@ def _scroll(tray_icon, event, direction=None): try: - # raise ImportError + import gi + gi.require_version('AppIndicator3', '0.1') from gi.repository import AppIndicator3 if _log.isEnabledFor(_DEBUG):