Files
omarchycn/bin/omarchy-remove-gaming-battlenet
T
Ryan Hughes 75cb4f7195 Make setup ISO-only
Remove legacy online installer entrypoints, collapse migrations for 4.0, and move setup responsibilities into target-side system, hardware, and user commands.
2026-06-04 18:37:32 -04:00

38 lines
1.0 KiB
Bash
Executable File

#!/bin/bash
# omarchy:summary=Remove Battle.net, its Proton prefix, installed games, and desktop entry.
set -e
PREFIX="$HOME/Games/battlenet"
# Stop any running Battle.net / wine processes tied to this prefix.
pkill -f "$PREFIX" 2>/dev/null || true
sleep 1
rm -rf "$PREFIX"
rm -f "$HOME/.local/share/applications/battlenet.desktop"
rm -f "$HOME/.cache/omarchy/Battle.net-Setup.exe"
update-desktop-database "$HOME/.local/share/applications" 2>/dev/null || true
echo
echo "Battle.net and its Proton prefix at $PREFIX have been removed."
if omarchy-pkg-present umu-launcher; then
echo
read -rp "Also remove umu-launcher? It's only used by this command. [y/N] " reply
if [[ $reply =~ ^[Yy]$ ]]; then
omarchy-pkg-drop umu-launcher
fi
fi
PROTON_DIR="$HOME/.local/share/Steam/compatibilitytools.d"
if compgen -G "$PROTON_DIR/GE-Proton*" >/dev/null; then
echo
read -rp "Also remove GE-Proton runtimes downloaded by umu? [y/N] " reply
if [[ $reply =~ ^[Yy]$ ]]; then
rm -rf "$PROTON_DIR"/GE-Proton*
rm -rf "$HOME/.local/share/umu"
fi
fi