Commit f9b3dae8 authored by Timothée Ravier's avatar Timothée Ravier
Browse files

rpm-ostree: Use os-release info for home, bug & doc URLs

parent 915676cc
......@@ -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")}}};
}
......
Supports Markdown
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