diff options
author | Ahmad Samir <a.samirh78@gmail.com> | 2023-04-20 16:27:21 +0200 |
---|---|---|
committer | Ahmad Samir <a.samirh78@gmail.com> | 2023-04-29 18:15:58 +0200 |
commit | 9b47c62682647a5a3a4119843a180e067952026f (patch) | |
tree | d125b7ce427add7c9d7b1e2cc3dca440ce21a288 /src/corelib/io/qstandardpaths_unix.cpp | |
parent | 7564583d362cc456bd6b17878ac25f6d93d113a8 (diff) |
QStandardPaths/Unix: adjust a comment after recent changes
No duplicate paths in any XDG_* env var.
Also borrow some text from the original commit 9deacd7f2080 message.
Change-Id: I89f1fe3093dd7fea2d1bb555e36f299a73685f07
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: David Faure <david.faure@kdab.com>
Diffstat (limited to 'src/corelib/io/qstandardpaths_unix.cpp')
-rw-r--r-- | src/corelib/io/qstandardpaths_unix.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/corelib/io/qstandardpaths_unix.cpp b/src/corelib/io/qstandardpaths_unix.cpp index 30c4c3ad55..64d8a3fa49 100644 --- a/src/corelib/io/qstandardpaths_unix.cpp +++ b/src/corelib/io/qstandardpaths_unix.cpp @@ -357,9 +357,9 @@ static QStringList dirsList(const QString &xdgEnvVar) if (dir.startsWith(u'/')) dirs.push_back(QDir::cleanPath(dir.toString())); - // Remove duplicates from the list, there's no use for duplicated - // paths in XDG_DATA_DIRS - if it's not found in the given - // directory the first time, it won't be there the second time. + // Remove duplicates from the list, there's no use for duplicated paths + // in XDG_* env vars - if whatever is being looked for is not found in + // the given directory the first time, it won't be there the second time. // Plus duplicate paths causes problems for example for mimetypes, // where duplicate paths here lead to duplicated mime types returned // for a file, eg "text/plain,text/plain" instead of "text/plain" |