[tracker] sandbox: Use separate dirs for config, data, etc.



commit 1027d43b44d7d63d3b4d6d3854628ed9ff54455c
Author: Sam Thursfield <sam thursfield codethink co uk>
Date:   Thu Jan 9 14:12:49 2014 +0000

    sandbox: Use separate dirs for config, data, etc.
    
    It's not a good idea to set XDG_CONFIG_HOME, XDG_DATA_HOME, etc. to
    the same directory, because some software might store a file
    with the same name in two of those directories. DConf does it.

 utils/sandbox/tracker-sandbox.py |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/utils/sandbox/tracker-sandbox.py b/utils/sandbox/tracker-sandbox.py
index 092398c..fd69c28 100755
--- a/utils/sandbox/tracker-sandbox.py
+++ b/utils/sandbox/tracker-sandbox.py
@@ -292,10 +292,10 @@ def environment_set():
                content_location_abs = os.path.abspath (opts.content_location)
 
        # Data
-       os.environ['XDG_DATA_HOME'] = '%s' % index_location_abs
-       os.environ['XDG_CONFIG_HOME'] = '%s' % index_location_abs
-       os.environ['XDG_CACHE_HOME'] = '%s' % index_location_abs
-       os.environ['XDG_RUNTIME_DIR'] = '%s' % index_location_abs
+       os.environ['XDG_DATA_HOME'] = '%s/data/' % index_location_abs
+       os.environ['XDG_CONFIG_HOME'] = '%s/config/' % index_location_abs
+       os.environ['XDG_CACHE_HOME'] = '%s/cache/' % index_location_abs
+       os.environ['XDG_RUNTIME_DIR'] = '%s/run/' % index_location_abs
 
        # Prefix - only set if non-standard
        if opts.prefix != default_prefix:


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