aboutsummaryrefslogtreecommitdiff
path: root/src/core/kdesktopfile.cpp
AgeCommit message (Collapse)Author
2018-03-11Remove not necessary QtCore and coLaurent Montel
2017-12-06Deprecate KDesktopFile::sortOrder()Alexander Volkov
Summary: The SortOrder key is deprecated by the Desktop Entry Specification: https://standards.freedesktop.org/desktop-entry-spec/latest/apc.html Reviewers: dfaure, #frameworks Reviewed By: dfaure Subscribers: #frameworks Tags: #frameworks Differential Revision: https://phabricator.kde.org/D9224
2017-12-06Fix the result of KDesktopFile::sortOrder()Alexander Volkov
Summary: KDesktopFile::sortOrder() returns the value of SortOrder key as a string whithout parsing it as a list. But according to Desktop Entry Specification https://standards.freedesktop.org/desktop-entry-spec/desktop-entry-spec-latest.html it's type is "string(s)", i.e. the same type as the type of Actions and MimeType keys, and thus it should be read the same way. Reviewers: #frameworks, dfaure Reviewed By: dfaure Subscribers: dfaure, #frameworks Tags: #frameworks Differential Revision: https://phabricator.kde.org/D8689
2017-04-25Fix relativePath calculation in KDesktopFile::locateLocal()Wolfgang Bauer
The "dir" and "path" variables were obviously swapped here by mistake. This resulted in the relativePath always being empty, and made the function return "~/.local/share/" (or "~/.config/") instead of the correct path. BUG: 345100 FIXED-IN: 5.34.0 Differential Revision: https://phabricator.kde.org/D5502
2016-05-19Avoid skipping KAuthorized checkDavid Edmundson
Previously, if a .desktop file had a TryExec and a X-KDE-AuthorizeAction entry we would skip the KAuthorized check. This is clearly wrong. REVIEW: 127948
2015-10-05Minor optimizationsAlbert Astals Cid
Ran the clazy tool (http://www.kdab.com/use-static-analysis-improve-performance/) Mostly QStringLiteral/QLatin1String additions A few const & additions to non public methods Compiles, test pass REVIEW: 125106
2015-09-07[KDesktopFile] add readMimeTypesKai Uwe Broulik
CHANGELOG: KDesktopFile can now read mime types specified in the MimeType field REVIEW: 124746
2015-02-16at KDesktopFile::locateLocal, correct the expression of the if statement ↵Guy Maurel
which was always TRUE REVIEW: 122445
2014-12-25Simplify condition, endsWith is clever enough.David Faure
2014-04-26Adapt to changes in KDEInstallDirsAleix Pol
kde5/services is kservices5 kde5/servicetypes is kservicestypes5
2014-03-25Remove kde3 compatibility code for "DocPath" in desktop filesAlex Merry
LXR suggests nothing still sets that (everything is X-DocPath now). REVIEW: 117003
2014-03-24Better comment for why KDesktopFile::readPath uses readEntryAlex Merry
REVIEW: 116962
2014-03-01we use Qt5 now, so re-enable -DQT_NO_CAST_FROM_BYTEARRAYDavid Faure
2013-12-18Code reformatted using kde-dev-scripts/astyle-kdelibs.David Faure
Use git blame -w 867e7a5 to show authorship as it was before this commit.
2013-12-18Move kconfig code to the root directory.Jenkins CI