-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathuninstall.sh
More file actions
executable file
·30 lines (22 loc) · 836 Bytes
/
Copy pathuninstall.sh
File metadata and controls
executable file
·30 lines (22 loc) · 836 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env bash
DESKTOP_FILE="$HOME/.local/share/applications/snbt-ai-localizer.desktop"
ICON_FILE="$HOME/.local/share/icons/hicolor/scalable/apps/snbt-ai-localizer.svg"
APP_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
echo "Uninstalling SNBT AI Localizer..."
rm -f "$DESKTOP_FILE"
rm -f "$ICON_FILE"
if [ -d "$APP_DIR/.venv" ]; then
echo "Removing virtual environment..."
rm -rf "$APP_DIR/.venv"
fi
CACHE_DIR="$HOME/.snbt_localizer"
if [ -d "$CACHE_DIR" ]; then
echo "Removing cache and logs..."
rm -rf "$CACHE_DIR"
fi
if [ -d "$HOME/.config/MineAI" ]; then
echo "Removing QSettings configuration..."
rm -rf "$HOME/.config/MineAI"
fi
update-desktop-database "$HOME/.local/share/applications" 2>/dev/null || true
echo "SUCCESS: All files, cache, logs, and settings have been removed cleanly."