refactor(modules): Clean up imports and centralize utilities- Enhancements:

- Remove redundant gi.repository imports
  - Move common utilities (GLib, GObject, logger, os) into fabric.utils
  - Centralize GLib usage and reduce namespace pollution
This commit is contained in:
sankalp committed 2026-04-10 00:10:40 +05:45
1 parent 9847bdf884
commit adb87456c7
12 files changed
+25 -41

No files matched your search

+1 -6
View File
@@ -1,18 +1,14 @@
import colorsys
import hashlib
import json
import os
import random
import re
import threading
import time
from typing import Dict, List, Optional
from loguru import logger
from gi.repository import GdkPixbuf
import config.data as data
from fabric.utils.helpers import exec_shell_command_async
from fabric.utils import exec_shell_command_async, GdkPixbuf, logger, os, GLib
from modules.launcher.plugin_base import PluginBase
from modules.launcher.result import Result
@@ -123,7 +119,6 @@ class WallpaperPlugin(PluginBase):
"""Clear the launcher search query and reset to trigger."""
try:
# Try to access the launcher through the fabric Application
from gi.repository import GLib
from fabric import Application