2 echo "Installing icons for mimetypes..."
3 for size in 16 32 48 256; do
4 xdg-icon-resource install --context mimetypes --size ${size} \
5 ${pkgdir}/usr/share/icons/hicolor/${size}x${size}/apps/keepass.png application-x-keepass2
9 echo "Adding file type descriptions provided in mimetypes-file to the desktop environment..."
10 xdg-mime install --novendor /usr/share/mime/packages/keepass.xml
13 echo "Updating icon, desktop and MIME caches..."
14 xdg-icon-resource forceupdate --theme hicolor &> /dev/null
15 update-desktop-database -q
16 update-mime-database usr/share/mime &> /dev/null
25 echo "Removing icons for mimetypes..."
26 for size in 16 32 48 256; do
27 xdg-icon-resource uninstall --context mimetypes --size ${size} application-x-keepass2
31 echo "Removing file type descriptions provided in mimetypes-file from the desktop environment..."
32 xdg-mime uninstall /usr/share/mime/packages/keepass.xml
35 echo "Updating icon, desktop and MIME caches..."
36 xdg-icon-resource forceupdate --theme hicolor &> /dev/null
37 update-desktop-database -q
38 update-mime-database usr/share/mime &> /dev/null