tracker-miners/flatpak-fixup.sh
Yaakov Selkowitz 664a298a51 Adapt flatpak conditionals for F39
Through Fedora 38, flatpaks were built as modules, which each
Tracker-based app having their own build of tracker-miners with
domain_ontology properly defined.  As of Fedora 39, all /app builds
use a common tag, and therefore there is only one tracker-miners build.

Therefore, use a dummy app name (which must be different than
org.freedesktop in order to trigger installation of the custom domain
rule), and a script to handle the renaming which will need to be run
during cleanup-commands in each app's container.yaml.
2023-10-16 13:02:07 -04:00

14 lines
494 B
Bash
Executable File

#! /bin/sh
set -eu
app=$1
for srv in Extract Files Files.Control; do
sed -e "s|org.gnome.FlatpakApp|${app}|" -i /app/share/dbus-1/services/org.gnome.FlatpakApp.Tracker3.Miner.$srv.service ;
mv /app/share/dbus-1/services/{org.gnome.FlatpakApp,${app}}.Tracker3.Miner.$srv.service ;
done
sed -e "s|org.gnome.FlatpakApp|${app}|" -i /app/share/tracker3/domain-ontologies/org.gnome.FlatpakApp.domain.rule
mv /app/share/tracker3/domain-ontologies/{org.gnome.FlatpakApp,${app}}.domain.rule