From 16348884c6b3632b9a7c7fee76c74d708c142f38 Mon Sep 17 00:00:00 2001 From: Alex Merry Date: Fri, 21 Mar 2014 18:01:40 +0000 Subject: Better comment for why KDesktopFile::readPath uses readEntry REVIEW: 116962 --- src/core/kdesktopfile.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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()); } -- cgit v1.2.1