blob: cdf95bfc5276a5bef0e60985b83875cb003590b6 (
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
|
_update_databases() {
if command -v update-desktop-database >/dev/null 2>&1; then
update-desktop-database -q /usr/share/applications || true
fi
if command -v update-mime-database >/dev/null 2>&1; then
update-mime-database /usr/share/mime || true
fi
}
post_install() {
_update_databases
cat <<'EOF'
==> whatevr installed whatevrd systemd user units.
==> Enable one startup mode:
==> systemctl --user enable --now whatevrd.socket
==> or:
==> systemctl --user enable --now whatevrd.service
EOF
}
post_upgrade() {
_update_databases
}
post_remove() {
_update_databases
}
|