Commit fc668c55 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Port plasma-desktop to autoconfig.kde.org

As per Ben's request in https://mail.kde.org/pipermail/kde-frameworks-devel/2020-January/102543.html

Differential Revision: https://phabricator.kde.org/D27020
parent 81d73cd7
......@@ -203,7 +203,7 @@ bool Attica::KdePlatformDependent::askForCredentials(const QUrl& baseUrl, QStrin
QList<QUrl> KdePlatformDependent::getDefaultProviderFiles() const
{
KConfigGroup group(m_config, "General");
QStringList pathStrings = group.readPathEntry("providerFiles", QStringList("http://download.kde.org/ocs/providers.xml"));
QStringList pathStrings = group.readPathEntry("providerFiles", QStringList("https://autoconfig.kde.org/ocs/providers.xml"));
QList<QUrl> paths;
foreach (const QString& pathString, pathStrings) {
paths.append(QUrl(pathString));
......@@ -215,7 +215,7 @@ QList<QUrl> KdePlatformDependent::getDefaultProviderFiles() const
void KdePlatformDependent::addDefaultProviderFile(const QUrl& url)
{
KConfigGroup group(m_config, "General");
QStringList pathStrings = group.readPathEntry("providerFiles", QStringList("http://download.kde.org/ocs/providers.xml"));
QStringList pathStrings = group.readPathEntry("providerFiles", QStringList("https://autoconfig.kde.org/ocs/providers.xml"));
QString urlString = url.toString();
if(!pathStrings.contains(urlString)) {
pathStrings.append(urlString);
......@@ -228,7 +228,7 @@ void KdePlatformDependent::addDefaultProviderFile(const QUrl& url)
void KdePlatformDependent::removeDefaultProviderFile(const QUrl& url)
{
KConfigGroup group(m_config, "General");
QStringList pathStrings = group.readPathEntry("providerFiles", QStringList("http://download.kde.org/ocs/providers.xml"));
QStringList pathStrings = group.readPathEntry("providerFiles", QStringList("https://autoconfig.kde.org/ocs/providers.xml"));
pathStrings.removeAll(url.toString());
group.writeEntry("providerFiles", pathStrings);
}
......
......@@ -39,7 +39,7 @@ Name[x-test]=xxColor Schemesxx
Name[zh_CN]=配色方案
Name[zh_TW]=顏色機制
ProvidersUrl=https://download.kde.org/ocs/providers.xml
ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml
TargetDir=color-schemes
Uncompress=archive
Categories=KDE Color Scheme KDE4
......
......@@ -40,7 +40,7 @@ Name[x-test]=xxCursorsxx
Name[zh_CN]=光标
Name[zh_TW]=游標
ProvidersUrl=https://download.kde.org/ocs/providers.xml
ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml
Categories=X11 Mouse Theme
InstallPath=.icons
Uncompress=always
......@@ -39,7 +39,7 @@ Name[x-test]=xxPlasma Themesxx
Name[zh_CN]=Plasma 主题
Name[zh_TW]=Plasma 主題
ProvidersUrl=https://download.kde.org/ocs/providers.xml
ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml
Categories=Plasma Theme
StandardResource=tmp
InstallationCommand=kpackagetool5 -t Plasma/Theme -i %f
......
......@@ -83,7 +83,7 @@ Name[x-test]=xxEmoticonsxx
Name[zh_CN]=表情
Name[zh_TW]=表情圖示
ProvidersUrl=https://download.kde.org/ocs/providers.xml
ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml
Categories=Emoticon Theme
TargetDir=emoticons
Uncompress=always
......@@ -91,7 +91,7 @@ Name[x-test]=xxIconsxx
Name[zh_CN]=图标
Name[zh_TW]=圖示
ProvidersUrl=https://download.kde.org/ocs/providers.xml
ProvidersUrl=https://autoconfig.kde.org/ocs/providers.xml
Categories=KDE Icon Theme
TargetDir=icons
Uncompress=true
......
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