blob: db58bd1fb42a019f32ba9ff17da99eca0d5f165c (
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
|
# utils function is based on virtualbox.install
utils() {
if [ -x usr/bin/update-mime-database ]; then
echo ">>> Updating Shared MIME-Info database..."
update-mime-database /usr/share/mime
# update-mime-database /usr/share/mime > /dev/null 2>&1
fi
if [ -x usr/bin/xdg-icon-resource ]; then
echo ">>> Updating desktop icon system..."
xdg-icon-resource forceupdate --theme hicolor
# xdg-icon-resource forceupdate --theme hicolor > /dev/null 2>&1
fi
if [ -x usr/bin/update-desktop-database ]; then
echo ">>> Updating MIME-desktop association cache database..."
update-desktop-database
# usr/bin/update-desktop-database -q
fi
}
post_install() {
utils
echo ">>> COPASIDIR environment variable will be set by /etc/profile.d/copasi.sh"
echo ">>> You may have to relogin or source it."
}
post_upgrade() {
utils
}
post_remove() {
utils
}
|