-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathuninstall.sh
More file actions
34 lines (25 loc) · 929 Bytes
/
uninstall.sh
File metadata and controls
34 lines (25 loc) · 929 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
31
32
33
34
#!/bin/bash
#eDEX-UI uninstaller by androrama | fenixlinux.com
# Resolve home safely (avoid eval — injection risk)
if [ -z "${HOME:-}" ]; then
if command -v getent &>/dev/null; then
HOME=$(getent passwd "$(whoami)" 2>/dev/null | cut -d: -f6)
else
HOME="/home/$(whoami)"
fi
fi
cd "$HOME" || exit 1
echo "Uninstalling eDEX-UI..."
# Remove AppImage from both possible locations
rm -f "$HOME/eDEX-UI-Linux-"*.AppImage 2>/dev/null
rm -f "$HOME/AppImage/eDEX-UI-Linux-"*.AppImage 2>/dev/null
# Remove icon
rm -f "$HOME/.local/share/icons/edex.png" 2>/dev/null
# Remove all desktop entries (any version)
rm -f "$HOME/.local/share/applications"/edex-ui*.desktop 2>/dev/null
# Remove config directory
rm -rf "$HOME/.config/eDEX-UI" 2>/dev/null
echo "eDEX-UI uninstalled successfully."
# Remove this script (must be last)
SELF="$(readlink -f "$0" 2>/dev/null || echo "$0")"
rm -f "$SELF" 2>/dev/null