kozec / syncthing-gtk

GTK3 & python based GUI for Syncthing
GNU General Public License v2.0
1.29k stars 140 forks source link

gi.repository: specify which version of AppIndicator3 is needed #422

Closed decathorpe closed 6 years ago

decathorpe commented 6 years ago
/usr/lib/python2.7/site-packages/syncthing_gtk/statusicon.py:452: 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.
  from gi.repository import AppIndicator3 as appindicator

This should be easily fixed by adding the following two lines before the actual import:

import gi
gi.require_version('AppIndicator3', '0.1')
kozec commented 6 years ago

True coder never cares about warnings :)

decathorpe commented 6 years ago

I don't particularly care, but I don't like them either ;) Thanks for including the fix so quickly though :+1: