Re: [Tracker] Disable indexing a subtree with tracker?
- From: Martyn Russell <martyn lanedo com>
- To: Brandon Philips <brandon ifup co>
- Cc: tracker-list gnome org
- Subject: Re: [Tracker] Disable indexing a subtree with tracker?
- Date: Wed, 12 Jun 2013 10:42:32 +0100
On 11/06/13 23:42, Brandon Philips wrote:
Hello-
I am working on an SDK that creates Linux disk images. As part of the
build process it creates and mounts various loopback devices.
It seems tracker sometimes inspects these mount points and causes
unmounts to fail. Instead of telling every user of my SDK to disable
indexing of new attached volumes via Tracker preferences can I place a
file somewhere to disable indexing the entire subtree of my SDK?
For example:
echo "*" > $SDK_ROOT/.trackerignore
Hello,
Yes, there are 3 ways to do this:
1. Disable mounting volumes, which you suggested you don't want to do.
$ gsettings set org.freedesktop.Tracker.Miner.Files
index-removable-devices false
2. Add a root directory to the list of ignored locations:
$ gsettings set org.freedesktop.Tracker.Miner.Files
ignored-directories "['/tmp', 'core-dumps', 'CVS', 'lost+found', 'po']"
NOTE: where /tmp is $SDK_ROOT.
3. Ignore directories with set content :) which is your example:
$ gsettings set org.freedesktop.Tracker.Miner.Files
ignored-directories-with-content "['.trackerignore']"
--
You can see all the settings on the command line using:
$ gsettings list-recursively |grep -i tracker
Happy to help,
--
Regards,
Martyn
Founder and CEO of Lanedo GmbH.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]