diff options
author | Alex Merry <alex.merry@kde.org> | 2014-03-21 18:01:40 +0000 |
---|---|---|
committer | Alex Merry <alex.merry@kde.org> | 2014-03-24 11:22:33 +0000 |
commit | 16348884c6b3632b9a7c7fee76c74d708c142f38 (patch) | |
tree | acebfa811c3377d32bdeb25e3c63879d23f9b03b | |
parent | 54e96153a57c43da26588acc2dd5d5f29763d124 (diff) | |
download | kconfig-16348884c6b3632b9a7c7fee76c74d708c142f38.tar.gz kconfig-16348884c6b3632b9a7c7fee76c74d708c142f38.tar.bz2 |
Better comment for why KDesktopFile::readPath uses readEntry
REVIEW: 116962
-rw-r--r-- | src/core/kdesktopfile.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/core/kdesktopfile.cpp b/src/core/kdesktopfile.cpp index ea0419f6..c5857221 100644 --- a/src/core/kdesktopfile.cpp +++ b/src/core/kdesktopfile.cpp @@ -202,8 +202,10 @@ QString KDesktopFile::readGenericName() const QString KDesktopFile::readPath() const { Q_D(const KDesktopFile); - // NOT readPathEntry, it is not XDG-compliant. Path entries written by - // KDE4 will be still treated as such, though. + // NOT readPathEntry, it is not XDG-compliant: it performs + // various expansions, like $HOME. Note that the expansion + // behaviour still happens if the "e" flag is set, maintaining + // backwards compatibility. return d->desktopGroup.readEntry("Path", QString()); } |