flatpak-builder/triggers/desktop-database.trigger

6 lines
192 B
Bash

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