forked from gnunn1/tilix
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuninstall.sh
executable file
·27 lines (23 loc) · 962 Bytes
/
uninstall.sh
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
#!/usr/bin/env sh
if [ -z "$1" ]; then
export PREFIX=/usr
# Make sure only root can run our script
if [ "$(id -u)" != "0" ]; then
echo "This script must be run as root" 1>&2
exit 1
fi
else
export PREFIX=$1
fi
echo "Uninstalling from prefix ${PREFIX}"
rm ${PREFIX}/bin/terminix
rm ${PREFIX}/share/glib-2.0/schemas/com.gexperts.Terminix.gschema.xml
glib-compile-schemas ${PREFIX}/share/glib-2.0/schemas/
rm -rf ${PREFIX}/share/terminix
find ${PREFIX}/share/locale -type f -name "terminix.mo" -delete
find ${PREFIX}/share/icons/hicolor -type f -name "com.gexperts.Terminix.png" -delete
find ${PREFIX}/share/icons/hicolor -type f -name "com.gexperts.Terminix*.svg" -delete
rm ${PREFIX}/share/nautilus-python/extensions/open-terminix.py
rm ${PREFIX}/share/dbus-1/services/com.gexperts.Terminix.service
rm ${PREFIX}/share/applications/com.gexperts.Terminix.desktop
rm ${PREFIX}/share/metainfo/com.gexperts.Terminix.appdata.xml