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)
Type
Describes the various types of XDG .desktop files.
@ Dir
A shortcut to a directory.
@ Application
A shortcut to an application.
@ URL
A shortcut to an URL.
QStringList ToPaths(const QList< Type > &types)
Returns a set of typical directories with desktop files of the given types.
auto ConcatMap(Cont &&c, F &&f)