Add 'backtunnel/' from commit '91afb22a2b1cbe73ff2ddc25920542495ee76213'
git-subtree-dir: backtunnel git-subtree-mainline:ee5cd7088cgit-subtree-split:91afb22a2b
This commit is contained in:
27
backtunnel/backtunnel.install
Normal file
27
backtunnel/backtunnel.install
Normal file
@@ -0,0 +1,27 @@
|
||||
post_install() {
|
||||
# Refresh desktop DB
|
||||
if command -v update-desktop-database >/dev/null 2>&1; then
|
||||
update-desktop-database -q || true
|
||||
fi
|
||||
# Rebuild KDE service cache
|
||||
if command -v kbuildsycoca6 >/dev/null 2>&1; then
|
||||
kbuildsycoca6 --noincremental >/dev/null 2>&1 || true
|
||||
elif command -v kbuildsycoca5 >/dev/null 2>&1; then
|
||||
kbuildsycoca5 --noincremental >/dev/null 2>&1 || true
|
||||
fi
|
||||
}
|
||||
|
||||
post_upgrade() {
|
||||
post_install
|
||||
}
|
||||
|
||||
post_remove() {
|
||||
if command -v update-desktop-database >/dev/null 2>&1; then
|
||||
update-desktop-database -q || true
|
||||
fi
|
||||
if command -v kbuildsycoca6 >/dev/null 2>&1; then
|
||||
kbuildsycoca6 --noincremental >/dev/null 2>&1 || true
|
||||
elif command -v kbuildsycoca5 >/dev/null 2>&1; then
|
||||
kbuildsycoca5 --noincremental >/dev/null 2>&1 || true
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user