aboutsummaryrefslogtreecommitdiff
path: root/fiv-update-desktop-files.in
blob: 1c8568fbe27ad2f76bd9ff5ebb97945474efac4a (plain)
1
2
3
4
5
6
7
8
#!/bin/sh -e
fiv=${DESTDIR:+$DESTDIR/}'@FIV@'
desktopdir=${DESTDIR:+$DESTDIR/}'@DESKTOPDIR@'

types=$("$fiv" --list-supported-media-types | tr '\n' ';')
for desktop in @DESKTOPS@
do sed -i "s|^MimeType=.*|MimeType=$types|" "$desktopdir"/"$desktop"
done