* fix(ui): AppImage smoke fixes for tray icons, labels, and identity Replace placeholder mic tray SVGs with opaque branded icons, show whisper.cpp instead of Whisper_cpp, set GLib/AppIndicator identity to Vocalinux (not main.py), and give About dialog buttons enough padding so labels are not clipped under Adwaita. * fix(packaging): harden AppImage build for Wayland and tray deps Pin the build interpreter, install onnxruntime into the bundle, set desktop Exec=AppRun + StartupWMClass, prune typelibs to an allowlist after linuxdeploy, and stop forcing GDK_BACKEND=x11 on Wayland (VOCALINUX_FORCE_X11=1 remains as an escape hatch). CI AppImage jobs also pull Ayatana AppIndicator and librsvg SVG loader packages. * fix(packaging): bundle full stdlib from base_prefix in AppImage When build.sh runs under a venv, sys.prefix only has site-packages, so the AppImage was missing encodings and crashed on start. Copy the interpreter and stdlib from sys.base_prefix, force pip --ignore-installed into AppDir, set Gdk program class to Vocalinux, and tone down the muted tray slash so small StatusNotifier icons stay slate. * fix(tray): use absolute icon paths so stale hicolor icons lose XFCE StatusNotifier resolves IconName through the system theme and can ignore IconThemePath. A leftover ~/.local/share/icons placeholder (vocalinux-microphone-off.svg filled #e74c3c) was winning over the AppImage's bundled icons. Outside Flatpak, pass absolute SVG paths to set_icon_full / new_with_path instead of bare theme names.
19 lines
571 B
Python
19 lines
571 B
Python
"""Tests for speech-engine display name helpers."""
|
|
|
|
from vocalinux.ui.settings_dialog import (
|
|
ENGINE_DISPLAY_NAMES,
|
|
_engine_display_name,
|
|
_engine_from_display,
|
|
)
|
|
|
|
|
|
def test_whisper_cpp_display_name():
|
|
assert ENGINE_DISPLAY_NAMES["whisper_cpp"] == "whisper.cpp"
|
|
assert _engine_display_name("whisper_cpp") == "whisper.cpp"
|
|
assert _engine_from_display("whisper.cpp") == "whisper_cpp"
|
|
|
|
|
|
def test_engine_display_roundtrip():
|
|
for engine_id in ENGINE_DISPLAY_NAMES:
|
|
assert _engine_from_display(_engine_display_name(engine_id)) == engine_id
|