diff options
author | Jeremy Katz <jeremy.katz@nokia.com> | 2012-02-15 18:49:31 +0100 |
---|---|---|
committer | Qt by Nokia <qt-info@nokia.com> | 2012-02-17 11:44:29 +0100 |
commit | 64d06c1c673253cd247947e840ba96c628c1a4b1 (patch) | |
tree | 371a87548b160866e714dbc141a99f3369b0af48 /src/corelib/io/io.pri | |
parent | 51699245d7e3a27867f440697eca9b30ea4578f4 (diff) |
QStandardPaths implementation configured using JSON
The default JSON file is /etc/user-dirs.json, but may be
overridden by setting PATH_CONFIG_HOME to the file to be used.
This provides functionality similar to the XDG based QStandardPaths,
but uses a JSON file to define paths, rather than the XDG A=B
format. Values other than HomeLocation and TempLocation may be
specified by removing the "Location" postfix, converting to upper
case, and separating words with _. Values are independent. For example,
CacheLocation does not depend on GenericCacheLocation.
Variables specified as ${[^{]*} will be replaced with environment
variables.
Change-Id: I374f5e6bae498dbfa9cb4ecadf915b05fb91fc34
Reviewed-by: David Faure <faure@kde.org>
Diffstat (limited to 'src/corelib/io/io.pri')
-rw-r--r-- | src/corelib/io/io.pri | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/corelib/io/io.pri b/src/corelib/io/io.pri index 1a73783604..2df862e360 100644 --- a/src/corelib/io/io.pri +++ b/src/corelib/io/io.pri @@ -106,6 +106,8 @@ win32 { } macx-*: { SOURCES += io/qstandardpaths_mac.cpp + } else:standardpathsjson { + SOURCES += io/qstandardpaths_json.cpp } else { SOURCES += io/qstandardpaths_unix.cpp } |