[gnome-games/wip/exalm/tracker-sandbox: 1/3] data: Add tracker ontology
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/tracker-sandbox: 1/3] data: Add tracker ontology
- Date: Fri, 18 Jan 2019 14:39:25 +0000 (UTC)
commit 9acbea4f5f68ee7cb2aa94cd6e4d175e6d12ce95
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Thu Jan 17 20:54:12 2019 +0500
data: Add tracker ontology
data/meson.build | 10 ++++++++++
data/org.gnome.Games.rule.in | 39 +++++++++++++++++++++++++++++++++++++++
2 files changed, 49 insertions(+)
---
diff --git a/data/meson.build b/data/meson.build
index 4c87a4fe..ed6cb817 100644
--- a/data/meson.build
+++ b/data/meson.build
@@ -64,5 +64,15 @@ configure_file (
install_dir: join_paths(datadir, 'glib-2.0', 'schemas'),
)
+ontology_conf = configuration_data()
+ontology_conf.set('appid', application_id)
+configure_file (
+ input: 'org.gnome.Games.rule.in',
+ output: '@0@.rule'.format(application_id),
+ configuration: ontology_conf,
+ install: true,
+ install_dir: join_paths (datadir, 'tracker', 'domain-ontologies')
+)
+
subdir ('icons')
subdir ('options')
diff --git a/data/org.gnome.Games.rule.in b/data/org.gnome.Games.rule.in
new file mode 100644
index 00000000..e15ff3a2
--- /dev/null
+++ b/data/org.gnome.Games.rule.in
@@ -0,0 +1,39 @@
+[DomainOntology]
+# All locations accept
+# 1) Paths relative from a variable, the variables
+# may be: HOME, XDG_CACHE_HOME, XDG_DATA_HOME, XDG_RUNTIME_DIR,
+# XDG_DESKTOP_DIR, XDG_DOCUMENTS_DIR, XDG_DOWNLOAD_DIR,
+# XDG_MUSIC_DIR, XDG_PICTURES_DIR, XDG_PUBLICSHARE_DIR,
+# XDG_VIDEOS_DIR.
+#
+# eg. $XDG_CACHE_HOME/...
+#
+# 2) URIs
+#
+# eg. file:///var/...
+#
+
+# Location for the Tracker database (not optional)
+CacheLocation=$XDG_CACHE_HOME/gnome-games/tracker
+
+# Location for the data journal, used in data recovery
+# situations (optional)
+JournalLocation=$XDG_DATA_HOME/gnome-games/tracker/journal
+
+# Name of the ontology to use, must be one located in
+# $(sharedir)/tracker/ontologies
+OntologyName=nepomuk
+
+# DBus name for the owner (not optional). Tracker will use
+# the domain as the prefix of the DBus name for all the
+# services related to this domain ontology.
+#
+# eg. org.gnome.Photos
+Domain=@appid@
+
+# Miners that the domain ontology will require. This is
+# purely a hint (mainly for libtracker-control), and not
+# any sort of white list. Anything else knowing about this
+# domain ontology may still perform updates, miners and
+# non-miners.
+Miners=Miner.Files;Miner.Extract;
\ No newline at end of file
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]