31 #include <QStringList> 44 QStringList ToPathsImpl (
Type type)
53 "/usr/share/applications",
54 "/usr/local/share/applications" 60 qWarning () << Q_FUNC_INFO
62 <<
static_cast<int> (type);
66 QStringList Recurse (
const QString& path)
68 const auto& infos = QDir { path }.entryInfoList (QDir::AllDirs | QDir::NoDotAndDotDot);
70 QStringList result { path };
72 [] (
const QFileInfo& info)
74 return Recurse (info.absoluteFilePath ());
79 QStringList ToPathsRecurse (
Type type)
A shortcut to an application.
QStringList ToPaths(const QList< Type > &types)
Returns a set of typical directories with desktop files of the given types.
Type
Describes the various types of XDG .desktop files.
auto ConcatMap(Cont &&c, F &&f)
A shortcut to a directory.