blob: 99ffb0944c383541c643322bafcade1e3fcd7ed6 (
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
|
#!/bin/bash
# Post-install script for Linuxy
post_install() {
# Update desktop database
if command -v update-desktop-database &> /dev/null; then
update-desktop-database /usr/share/applications 2>/dev/null || true
fi
# Update icon cache
if command -v gtk-update-icon-cache &> /dev/null; then
for size in 32x32 128x128 256x256 512x512; do
gtk-update-icon-cache -f -t /usr/share/icons/hicolor/$size 2>/dev/null || true
done
fi
}
# Post-remove script
post_remove() {
# Update desktop database
if command -v update-desktop-database &> /dev/null; then
update-desktop-database /usr/share/applications 2>/dev/null || true
fi
# Update icon cache
if command -v gtk-update-icon-cache &> /dev/null; then
for size in 32x32 128x128 256x256 512x512; do
gtk-update-icon-cache -f -t /usr/share/icons/hicolor/$size 2>/dev/null || true
done
fi
}
post_upgrade() {
post_install
}
|