summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2020-01-24 11:16:53 +0100
committerCarlos Garnacho <carlosg@gnome.org>2020-07-17 09:33:38 +0200
commit48811ccfe27965e1ceaeacf34303f103da591ea6 (patch)
tree4d788d9113d03718111839937308633e36bac43d /examples
parentf2f8833715669cbb8138b0d1ed3a3ede4e416161 (diff)
downloadtracker-48811ccfe27965e1ceaeacf34303f103da591ea6.tar.gz
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.
Diffstat (limited to 'examples')
-rw-r--r--examples/flatpak/org.example.TrackerSandbox.json32
1 files changed, 32 insertions, 0 deletions
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"
+ }
+ ]
+ }
+ ]
+}