diff options
author | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-01-09 14:12:49 +0000 |
---|---|---|
committer | Sam Thursfield <sam.thursfield@codethink.co.uk> | 2014-01-09 14:30:56 +0000 |
commit | 1027d43b44d7d63d3b4d6d3854628ed9ff54455c (patch) | |
tree | 4e8b66263187cd16407e9174ae47f508d0b958a5 /utils | |
parent | 5d8e2dd160e1db727d2ef0f310b1752f1b2797e5 (diff) | |
download | tracker-1027d43b44d7d63d3b4d6d3854628ed9ff54455c.tar.gz |
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.
Diffstat (limited to 'utils')
-rwxr-xr-x | 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 092398c15..fd69c2822 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: |