The fork takes its own name everywhere a user can see it: binaries (voculinux, voculinux-gui), desktop entry, autostart, tray, D-Bus namespace (com.voculinux.Voculinux, no alias for the old name), config/data/cache dirs, single-instance lock, IBus engine identity, tray icons, resource prefixes, VOCULINUX_* environment names, and the update-checker user agent. The internal Python module stays vocalinux and the distribution metadata keeps the upstream URLs as provenance. On first run a previous Vocalinux install's config.json, custom dictionary, and portal restore token are copied once into the new locations (new config always wins, no merge, no write-back); models re-resolve through the pinned-checksum download path. An offline naming-sweep test proves no old-name strings remain on user-visible surfaces outside the allowlist. Refs #18
23 lines
859 B
Bash
23 lines
859 B
Bash
#!/usr/bin/env bash
|
|
# Install the actual artifact on a disposable Ubuntu host with snapd. This is
|
|
# not desktop QA: no microphone, model download, hotkey or typing is exercised.
|
|
set -euo pipefail
|
|
|
|
if [ "$#" -ne 1 ] || [ ! -f "$1" ]; then
|
|
echo "Usage: bash snap/local/smoke-test.sh PATH.snap" >&2
|
|
exit 1
|
|
fi
|
|
if snap list voculinux >/dev/null 2>&1; then
|
|
echo "Refusing to replace an existing Voculinux snap; use a disposable host" >&2
|
|
exit 1
|
|
fi
|
|
|
|
sudo snap install --dangerous "$1"
|
|
snap run voculinux --version
|
|
# --shell does not run the application's command chain. Explicitly enter the
|
|
# same GNOME desktop-launch environment before checking the installed payload.
|
|
PYNPUT_BACKEND=dummy snap run --shell voculinux -c '
|
|
exec "$SNAP/snap/command-chain/desktop-launch" "$SNAP/bin/python3" \
|
|
"$SNAP/usr/lib/voculinux/check_runtime.py" --root "$SNAP"
|
|
'
|