#!/usr/bin/env bash # 1781470800-notif-clear-fix.sh # The NoSignal notifications popout (bell) "Clear" button did nothing — it called # n.notification?.dismiss() instead of the wrapper's close(), so cards never left # the list (and it was a no-op for disk-restored notifications). Patches the # installed nosignal-shell file on already-installed boxes. Idempotent. # # >> Builder: the REAL fix is in the nosignal-shell FORK source # (modules/nsbar/panels/NsNotifications.qml). Bake the corrected file there and # set NOSIGNAL_SKIP_SHELL_PATCH for the build so this fallback patch is skipped. set -euo pipefail : "${NOSIGNAL_SRC:?NOSIGNAL_SRC must point at the NoSignal source root}" sudo sh "$NOSIGNAL_SRC/notif-clear-fix/install-notif-clear-fix.sh"