blob: 78c6ba086231ca4f5dc0f0138db0c1e004eca8e7 (
plain)
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
|
post_install() {
if [ -f usr/bin/xdg-icon-resource ]; then
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
fi
if [ -f usr/sbin/gconfpkg ]; then
usr/sbin/gconfpkg --install mcomix &> /dev/null
fi
update-desktop-database -q
update-mime-database /usr/share/mime
}
pre_upgrade() {
pre_remove $1
}
post_upgrade() {
echo 'In case of any issues with zoom keybindings, delete ~/.config/mcomix/keybindings.conf'
post_install $1
}
pre_remove() {
if [ -f usr/sbin/gconfpkg ]; then
usr/sbin/gconfpkg --uninstall mcomix &> /dev/null
fi
}
post_remove() {
if [ -f usr/bin/xdg-icon-resource ]; then
xdg-icon-resource forceupdate --theme hicolor &> /dev/null
fi
update-desktop-database -q
update-mime-database /usr/share/mime &> /dev/null
}
|