MCPcopy Create free account
hub / github.com/KDE/kdevelop / canLaunchMetadataFile

Function canLaunchMetadataFile

plugins/executeplasmoid/plasmoidexecutionconfig.cpp:235–241  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

233}
234
235static bool canLaunchMetadataFile(const KDevelop::Path &path)
236{
237 KConfig cfg(path.toLocalFile(), KConfig::SimpleConfig);
238 KConfigGroup group(&cfg, QStringLiteral("Desktop Entry"));
239 QStringList services = group.readEntry("ServiceTypes", group.readEntry("X-KDE-ServiceTypes", QStringList()));
240 return services.contains(QStringLiteral("Plasma/Applet"));
241}
242
243//don't bother, nobody uses this interface
244bool PlasmoidExecutionConfigType::canLaunch(const QUrl& ) const

Callers 2

canLaunchMethod · 0.85
launcherSuggestionsMethod · 0.85

Calls 4

QStringListClass · 0.85
toLocalFileMethod · 0.80
readEntryMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected