#!/usr/bin/env bash set -euo pipefail if [[ "$(id -u)" -ne 0 ]]; then echo "uninstall.sh must run as root" >&2 exit 1 fi systemctl disable --now ld-fdpi-helper.service 2>/dev/null || true rm -f /etc/systemd/system/ld-fdpi-helper.service rm -f /usr/share/applications/ld-fdpi.desktop rm -f /usr/share/icons/hicolor/256x256/apps/ld-fdpi.png rm -f /usr/bin/ld-fdpi rm -rf /usr/lib/ld-fdpi systemctl daemon-reload echo "Removed. User config in ~/.config/ld-fdpi was left intact."