Comment 4 for bug 1538116

Revision history for this message
Pascal Mons (anton+) wrote :

Where is your Fix Release ? I don't see anything. I believe in my Xenial 16.04 I have just fixed the error messages I got for caffeine and caffeine-indicator:

For /usr/bin/caffeine at the beginning of file in the import section I did add an import gi followed by a require_version i.e.

import gi
gi.require_version('Gtk', '3.0')
import pkg_resources
from gi.repository import GObject, Gtk, GLib

For /usr/bin/caffeine-indicator idem

import gi
gi.require_version('Gtk', '3.0')
gi.require_version('AppIndicator3', '0.1')
import pkg_resources
from gi.repository import GLib, Gtk, GObject, AppIndicator3

Now when launched by a Terminal cmd. line there is no warnings / no errors.

Still after moving from Trusty 14.04 I had to edit the Start-up Applications Command:

From /usr/bin/caffeine To /usr/bin/caffeine-indicator