-
Notifications
You must be signed in to change notification settings - Fork 6
/
uninstall.sh
executable file
·37 lines (27 loc) · 1001 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
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# This script uninstall Luminance for all users. Root permissions are needed
if [ `whoami` != "root" ]
then
echo "Not root. Exiting..."
exit
fi
if [ ! -f /usr/bin/com.sidevesh.Luminance ]
then
echo "App not installed. Exiting..."
exit
fi
echo "Removing app from /usr/bin..."
rm /usr/bin/com.sidevesh.Luminance
echo "Removing desktop file from /usr/share/applications..."
rm /usr/share/applications/com.sidevesh.Luminance.desktop
echo "Removing GSettings schema..."
rm /usr/share/glib-2.0/schemas/com.sidevesh.Luminance.gschema.xml
echo "Removing udev rules..."
rm /usr/lib/udev/rules.d/44-backlight-permissions.rules
echo "Removing icons..."
rm /usr/share/icons/hicolor/scalable/apps/com.sidevesh.Luminance.svg
rm /usr/share/icons/hicolor/symbolic/apps/com.sidevesh.Luminance-symbolic.svg
echo "Compiling schemas and updating icon cache..."
glib-compile-schemas /usr/share/glib-2.0/schemas/
gtk-update-icon-cache /usr/share/icons/hicolor/
echo "Uninstalled successfully"