From 705d4bf553c9ca4ca7bc99fd02c289f70708552e Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Tue, 25 Mar 2025 08:42:11 -0400 Subject: [PATCH] Dirty hack to work around libpeas problems. No clue if it will work or not. --- src/cthulhu/gi_setup.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/cthulhu/gi_setup.py b/src/cthulhu/gi_setup.py index f683867..74de7bc 100644 --- a/src/cthulhu/gi_setup.py +++ b/src/cthulhu/gi_setup.py @@ -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