From 48811ccfe27965e1ceaeacf34303f103da591ea6 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 24 Jan 2020 11:16:53 +0100 Subject: examples: Add example flatpak definition This doesn't do much, just builds tracker inside a sandbox, but does handle limiting access to certain graphs, and lets you do your own queries/endpoint within the sandbox. It does rely on matching Tracker 3.x services and portal running in the host. With everything in place, queries to the FS miner will go through the portal, and be limited to the Tracker3 policies defined in the .flatpak-info file. This is done through --add-policy on "flatpak build finish" as per the manifest, but can also be influenced at "flatpak run" time for further testing. --- examples/flatpak/org.example.TrackerSandbox.json | 32 ++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 examples/flatpak/org.example.TrackerSandbox.json (limited to 'examples') diff --git a/examples/flatpak/org.example.TrackerSandbox.json b/examples/flatpak/org.example.TrackerSandbox.json new file mode 100644 index 000000000..72e023b13 --- /dev/null +++ b/examples/flatpak/org.example.TrackerSandbox.json @@ -0,0 +1,32 @@ +{ + "app-id" : "org.example.TrackerSandbox", + "runtime" : "org.gnome.Platform", + "runtime-version" : "master", + "sdk" : "org.gnome.Sdk", + "command" : "/bin/sh", + "tags" : [ + "nightly" + ], + "finish-args" : [ + /* Define policy for the XDG Tracker portal */ + "--add-policy=Tracker3.dbus:org.freedesktop.Tracker3.Miner.Files=tracker:Audio" + ], + "modules" : [ + { + "name" : "tracker", + "buildsystem" : "meson", + "config-opts": [ + "-Ddocs=false", + "-Dman=false", + "-Dsystemd_user_services=false" + ], + "sources" : [ + { + "type" : "git", + "url" : "https://gitlab.gnome.org/GNOME/tracker.git", + "branch" : "wip/carlosg/portal" + } + ] + } + ] +} -- cgit v1.2.1