Dirty hack to work around libpeas problems. No clue if it will work or not.

This commit is contained in:
Storm Dragon 2025-03-25 08:42:11 -04:00
parent ce80a3af75
commit 705d4bf553

View File

@ -19,6 +19,7 @@
"""Centralized setup for GObject Introspection (GI) in Cthulhu."""
from gi.repository import Peas
import gi
# FIRST: Load GIRepository with the correct version
@ -36,7 +37,6 @@ except (ValueError, ImportError):
# SECOND: Set versions for other modules and import them
gi.require_version('Atspi', '2.0')
gi.require_version('Gdk', '3.0')
gi.require_version('Peas', '1.0')
try:
from gi.repository import GObject
@ -53,11 +53,6 @@ try:
except ImportError:
Gdk = None
try:
from gi.repository import Peas
except ImportError:
Peas = None
try:
gi.require_version('Gio', '2.0')
from gi.repository import Gio