summaryrefslogtreecommitdiffstats
path: root/src/corelib/global/qcompilerdetection.h
diff options
context:
space:
mode:
authorMartin Klapetek <mklapetek@kde.org>2013-09-03 10:29:42 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-09 23:04:48 +0200
commit9deacd7f2080cc042430df0fe615ed84ee493390 (patch)
treea9f57c3bde65a510aa09dc264697c7e40ed939fc /src/corelib/global/qcompilerdetection.h
parentff6754fb8cb662de3066c1dcca6cf6d56db41671 (diff)
Normalise and deduplicate paths for XDG_DATA_DIRS
This removes the trailing slashes from the path and then removes dirs set twice in XDG_DATA_DIRS (always removes those from the right side). There's no use for duplicit dirs in XDG_DATA_DIRS because if whatever is being looked up is not found in the duplicated dir the first time, it won't be there the second time. Currently it causes troubles for example in mime types, where it returns duplicated mime types as the same dir is searched multiple times. For obtaining the original value of XDG_DATA_DIRS, one can use qgetenv("XDG_DATA_DIRS"). Change-Id: Ic4f8ef6c6fe096555948e318899207e9d4ca8289 Reviewed-by: David Faure KDE (deprecated, use kdab instead) <faure@kde.org>
Diffstat (limited to 'src/corelib/global/qcompilerdetection.h')
0 files changed, 0 insertions, 0 deletions