[tracker/wip/carlosg/portal: 55/66] examples: Add example flatpak definition



commit 6e0425515ee270f7d00fc5e253f998576e9c674f
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jan 24 11:16:53 2020 +0100

    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.

 .../flatpak/org.freedesktop.TrackerSandbox.json    | 27 ++++++++++++++++++++++
 1 file changed, 27 insertions(+)
---
diff --git a/examples/flatpak/org.freedesktop.TrackerSandbox.json 
b/examples/flatpak/org.freedesktop.TrackerSandbox.json
new file mode 100644
index 000000000..49a9cd0a9
--- /dev/null
+++ b/examples/flatpak/org.freedesktop.TrackerSandbox.json
@@ -0,0 +1,27 @@
+{
+    "app-id" : "org.freedesktop.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.Tracker1.Miner.Files=org.freedesktop.XdgFolder.Music"
+    ],
+    "modules" : [
+        {
+            "name" : "tracker",
+           "buildsystem" : "meson",
+            "sources" : [
+                {
+                    "type" : "git",
+                    "url" : "https://gitlab.gnome.org/GNOME/tracker.git";,
+                    "branch" : "wip/carlosg/portal"
+                }
+            ]
+        }
+    ]
+}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]