LINUX.ORG.RU

История изменений

Исправление krang, (текущая версия) :

import sys

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

from ewmh import EWMH
$ caffeine
Traceback (most recent call last):
  File "/usr/bin/caffeine", line 25, in <module>
    gi.require_version('Gtk', '3.0')
NameError: name 'gi' is not defined

Исходная версия krang, :

import sys

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

from ewmh import EWMH
$ caffeine
Traceback (most recent call last):
  File "/usr/bin/caffeine", line 25, in <module>
    gi.require_version('GtK', '3.0')
NameError: name 'gi' is not defined