2
# Helper functions to start your own Tracker instance. This depends
3
# on you having your own D-Bus session bus started (first).
6
# Copyright (C) 2011 Collabora Ltd. <http://www.collabora.co.uk/>
8
# Copying and distribution of this file, with or without modification,
9
# are permitted in any medium without royalty provided the copyright
10
# notice and this notice are preserved.
12
tracker_tmpdir=$(mktemp -d)
14
tracker_init_settings () {
15
export XDG_DATA_HOME=$tracker_tmpdir/.local
16
export XDG_CACHE_HOME=$tracker_tmpdir/.cache
17
export XDG_CONFIG_HOME=$tracker_tmpdir/.config
20
# This should be called on INT TERM and EXIT
22
rm -rf $tracker_tmpdir
23
rm -rf $tracker_tmpdir
27
tracker-control -rs > /dev/null 2>&1
32
tracker-control -r > /dev/null 2>&1