summaryrefslogtreecommitdiff
path: root/src/tracker-store/tracker-main.vala
diff options
context:
space:
mode:
authorSam Thursfield <sam@afuera.me.uk>2018-08-11 20:42:18 +0200
committerSam Thursfield <sam@afuera.me.uk>2018-08-11 21:33:08 +0200
commitdd59bb4ff5088064c28cca2313255396f97920bf (patch)
tree2616fb8c884392ff2d425611b2ac542c051a8b28 /src/tracker-store/tracker-main.vala
parent9840ab01f1b609fe2f9674b4a491cf4c452b6273 (diff)
downloadtracker-sam/domain-rules-outside-usr.tar.gz
Allow use of domain rules that aren't installed into /usrsam/domain-rules-outside-usr
Currently Tracker domain rules must be installed inside Tracker's data directory (usually /usr/share/tracker). This is limiting as it means only system packages can add them. A program installed into /opt is unable to use a custom domain, for example. Since Tracker is implemented as a system of daemons, it's not particularly straight forward to work around this by setting XDG_DATA_DIRS= to point somewhere non-standard either. This patch removes this restriction in a simple way: it allows users to pass a full path to the domain rule, rather than just the base name.
Diffstat (limited to 'src/tracker-store/tracker-main.vala')
-rw-r--r--src/tracker-store/tracker-main.vala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tracker-store/tracker-main.vala b/src/tracker-store/tracker-main.vala
index 935ebc8d1..5ad40892b 100644
--- a/src/tracker-store/tracker-main.vala
+++ b/src/tracker-store/tracker-main.vala
@@ -320,7 +320,7 @@ License which can be viewed at:
main_loop = new MainLoop ();
if (domain_ontology != null)
- Tracker.DBus.watch_domain (domain_ontology, main_loop);
+ Tracker.DBus.watch_domain (domain_ontology_config.get_domain(), main_loop);
initialize_signal_handler ();