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
f9b3dae8
Commit
f9b3dae8
authored
Sep 23, 2021
by
Timothée Ravier
Browse files
rpm-ostree: Use os-release info for home, bug & doc URLs
parent
915676cc
Changes
1
Hide whitespace changes
Inline
Side-by-side
libdiscover/backends/RpmOstreeBackend/RpmOstreeResource.cpp
View file @
f9b3dae8
...
...
@@ -226,21 +226,22 @@ QUrl RpmOstreeResource::donationURL()
QUrl
RpmOstreeResource
::
homepage
()
{
return
QUrl
(
"https://spins.fedoraproject.org/en/kde/"
);
return
QUrl
(
AppStreamIntegration
::
global
()
->
osRelease
()
->
homeUrl
()
);
}
QUrl
RpmOstreeResource
::
helpURL
()
{
return
QUrl
(
"https://docs.fedoraproject.org/en-US/fedora-kinoite/"
);
return
QUrl
(
AppStreamIntegration
::
global
()
->
osRelease
()
->
documentationUrl
()
);
}
QUrl
RpmOstreeResource
::
bugURL
()
{
return
QUrl
(
"https://pagure.io/fedora-kde/SIG/issues"
);
return
QUrl
(
AppStreamIntegration
::
global
()
->
osRelease
()
->
bugReportUrl
()
);
}
QJsonArray
RpmOstreeResource
::
licenses
()
{
// TODO: Remove hardcoded value
return
{
QJsonObject
{{
QStringLiteral
(
"name"
),
i18n
(
"GPL and other licenses"
)},
{
QStringLiteral
(
"url"
),
QStringLiteral
(
"https://fedoraproject.org/wiki/Legal:Licenses"
)}}};
}
...
...
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