vp-build/helpers/update-desktopdb.sh
Juan RP 5bb36505b1 Rename helper-templates to just helpers.
--HG--
extra : convert_revision : cbaa30da99805accbe250d8dee5494c78cb93291
2008-10-30 23:34:05 +01:00

15 lines
422 B
Bash

#
# This helper update's desktop-file-utils desktop database for any
# package that requests this operation.
#
update_desktopdb_cmd=$XBPS_MASTERDIR/bin/update-desktop-database
desktopdb_dir=$XBPS_MASTERDIR/share/applications
if [ -x $update_desktopdb_cmd -a -d $desktopdb_dir ]; then
$update_desktopdb_cmd $desktopdb_dir && \
echo "=> Updated desktop database directory."
fi
unset update_desktopdb_cmd desktopdb_dir