refactor(src/utils): drop unused AppName methods and simplify DBusMenuClient

Removed get_app_exec, get_desktop_file, on_focus, get_revision; renamed parameter format_ to _format_; cleaned up imports and dead code.
This commit is contained in:
sankalp committed 2026-07-09 18:56:28 +05:45
1 parent de9ab766c4
commit 3dbad6bdea
6 files changed
+2 -282

No files matched your search

+1 -9
View File
@@ -2,15 +2,13 @@ import ctypes
import html
import subprocess
import threading
from typing import Dict, NamedTuple, Optional, TypeVar
from typing import Dict, NamedTuple, Optional
from fabric.utils import (
exec_shell_command_async,
logger,
)
T = TypeVar("T")
def set_process_name(name: str):
libc = ctypes.CDLL("libc.so.6")
@@ -85,12 +83,6 @@ def get_wifi_icon_for_strength(strength: int) -> str:
def get_wifi_connecting_icon() -> str:
"""
Get the WiFi connecting icon path.
Returns:
Relative path to the WiFi connecting icon
"""
return "wifi/wifi-connecting.svg"