void-packages/helper-templates/update-desktopdb.sh
Juan RP 0abdec75e6 Added desktop-file-utils-0.15 template and its associated helper.
--HG--
extra : convert_revision : 080e2c1e9930a480e88af722f91605a8a69c66cc
2008-10-15 02:50:10 +02:00

14 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