Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Plasma
Discover
Commits
c28508fe
Commit
c28508fe
authored
Dec 01, 2020
by
Aleix Pol Gonzalez
🐧
Browse files
snap: Suggest installing snap support if snap is not installed
BUG: 406656
parent
33088a9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
discover/DiscoverObject.cpp
View file @
c28508fe
...
...
@@ -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
()));
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment