if [ -x /usr/bin/update-desktop-database ]; then
  /usr/bin/update-desktop-database -q usr/share/applications >/dev/null 2>&1
fi

[ -x /sbin/ldconfig ]  &&  /sbin/ldconfig 2>/dev/null