Files
flatpak/triggers/mime-database.trigger
Alexander Larsson daf41bab9c Add triggers for exports
This runs the triggers in a read-only environment to update things
like desktop file databases, icon caches and mimeinfo databases.
2015-01-15 21:45:55 +01:00

6 lines
182 B
Bash
Executable File

#!/bin/sh
if test \( -x "$(which update-mime-database 2>/dev/null)" \) -a \( -d /self/exports/share/mime/packages \); then
exec update-mime-database /self/exports/share/mime
fi