mirror of
https://github.com/Cheviiot/Nivora.git
synced 2026-08-03 15:51:12 +00:00
Same pattern already used for claude/claude-desktop: keep the upstream desktop-id (org.telegram.desktop) and every installed path unchanged, only rename the Stapler package directory and `name` field. `replaces` stays self-name-only per the general rule in validate_repo.py (the old-name carve-over in `replaces` is currently special-cased there for `claude` only) — anyone with telegram-desktop installed needs `stplr install telegram` + `stplr remove telegram-desktop` manually.
24 lines
764 B
Bash
Executable File
24 lines
764 B
Bash
Executable File
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
optional_refresh() {
|
|
local label=$1
|
|
shift
|
|
if ! "$@"; then
|
|
echo "Предупреждение: не удалось обновить ${label}." >&2
|
|
fi
|
|
}
|
|
|
|
if command -v update-desktop-database >/dev/null 2>&1; then
|
|
optional_refresh "desktop-базу" update-desktop-database -q /usr/share/applications
|
|
fi
|
|
if command -v gtk-update-icon-cache >/dev/null 2>&1; then
|
|
optional_refresh "кэш иконок" \
|
|
gtk-update-icon-cache -q -t -f /usr/share/icons/hicolor
|
|
fi
|
|
if command -v kbuildsycoca6 >/dev/null 2>&1; then
|
|
optional_refresh "кэш KDE" kbuildsycoca6 --noincremental
|
|
elif command -v kbuildsycoca5 >/dev/null 2>&1; then
|
|
optional_refresh "кэш KDE" kbuildsycoca5 --noincremental
|
|
fi
|