10 #include <QStringList> 19 QStringList ToPathsImpl (
Type type)
28 QStringLiteral (
"/usr/share/applications"),
29 QStringLiteral (
"/usr/local/share/applications")
35 qWarning () << Q_FUNC_INFO
37 <<
static_cast<int> (type);
41 QStringList Recurse (
const QString& path)
43 const auto& infos = QDir { path }.entryInfoList (QDir::AllDirs | QDir::NoDotAndDotDot);
45 QStringList result { path };
47 [] (
const QFileInfo& info)
49 return Recurse (info.absoluteFilePath ());
54 QStringList ToPathsRecurse (
Type type)
A shortcut to an application.
Type
Describes the various types of XDG .desktop files.
QStringList ToPaths(const QList< Type > &types)
Returns a set of typical directories with desktop files of the given types.
A shortcut to a directory.
auto ConcatMap(Cont &&c, F &&f)