-
Notifications
You must be signed in to change notification settings - Fork 3
/
uninstall.sh
executable file
·38 lines (29 loc) · 1.01 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
#!/bin/sh
#
# Nepoogle user uninstalation script.
#
echo -n "Uninstalling Nepoogle..."
PROGRAMNAME=nepoogle
BINDIR=~/bin
BINNAME=$PROGRAMNAME
DESKTOPDIR=~/.local/share/applications/
ICONSDIR=~/.local/share/icons/hicolor
ICONS32="rating_empty.png rating_full.png rating_half.png"
ICONS48="orientation_1.png orientation_2.png orientation_3.png orientation_4.png orientation_5.png orientation_6.png orientation_7.png orientation_8.png sparql.png"
ICONS128="no_cover.png no_photo.png no_symbol.png no_video_thumbnail.png"
rm "$BINDIR"/"$BINNAME"
rm "$DESKTOPDIR"/$PROGRAMNAME.desktop
for icon in $ICONS32; do
rm "$ICONSDIR"/32x32/status/"$icon"
done
rmdir --ignore-fail-on-non-empty -p "$ICONSDIR"/32x32/status/
for icon in $ICONS48; do
rm "$ICONSDIR"/48x48/status/"$icon"
done
rmdir --ignore-fail-on-non-empty -p "$ICONSDIR"/48x48/status/
for icon in $ICONS128; do
rm "$ICONSDIR"/128x128/status/"$icon"
done
rmdir --ignore-fail-on-non-empty -p "$ICONSDIR"/128x128/status/
kbuildsycoca4 2> /dev/null
echo -e " done."