[tracker] utils/tracker-sandbox: Update to use new-style DConf profile



commit 9bde9af6a16c9e0a0290e6e6680facc42bc9eb6d
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Thu Sep 12 11:58:35 2013 +0100

    utils/tracker-sandbox: Update to use new-style DConf profile
    
    This fixes the "Error loading dconf profile 'trackertest'" message when
    using the tracker-sandbox script.
    
    This commit also adds a warning message when the file is not found,
    to remind the user that it is only installed when Tracker is configured
    with --enable-functional-tests.

 utils/tracker-sandbox |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/utils/tracker-sandbox b/utils/tracker-sandbox
index 24cd4fa..7b95332 100755
--- a/utils/tracker-sandbox
+++ b/utils/tracker-sandbox
@@ -62,7 +62,15 @@ DBUS_SESSION_BUS_PID=
 set -o errexit
 
 if [ "$SEPARATE_USER_MODE" != "true" ]; then
-       export DCONF_PROFILE=trackertest
+       export DCONF_PROFILE=$PREFIX/share/tracker-tests/trackertest
+
+       if ! [ -e $DCONF_PROFILE ]; then
+           echo "Warning: did not find file '$DCONF_PROFILE'"
+           echo "The DConf profile allows the sandboxed Tracker to be configured"
+           echo "independently from the system Tracker. This file should be "
+           echo "installed if Tracker was configured with --enable-functional-tests."
+           echo
+       fi
 
        TEMP_DIR=/tmp/tracker-test
        mkdir -p $TEMP_DIR


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