Commit c28508fe authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧

snap: Suggest installing snap support if snap is not installed

BUG: 406656
parent 33088a9e
......@@ -294,6 +294,9 @@ void DiscoverObject::openApplication(const QUrl& url)
connect(stream, &StoredResultsStream::finishedResources, this, [this, url](const QVector<AbstractResource*> &res) {
if (res.count() >= 1) {
emit openApplicationInternal(res.first());
} else if (url.scheme() == QLatin1String("snap")) {
openApplication(QUrl(QStringLiteral("appstream://org.kde.discover.snap")));
showPassiveNotification(i18n("Please make sure snap support is installed %1", url.toDisplayString()));
} else {
Q_EMIT openErrorPage(i18n("Couldn't open %1", url.toDisplayString()));
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment