state: 36/48 KDE packages build, 12 blocked — honest final state
The literal task 'build ALL KDE packages' cannot be 100% completed because 12 packages require upstream dependencies not available on Redox: - kirigami + plasma* (4): QML JIT disabled — no QQuickWindow/QQmlEngine - kwin real build (1): Qt6::Sensors port needed - breeze + kf6-kio + kf6-knewstuff + kde-cli-tools (4): source issues - plasma extras (3): transitive blockers What WAS completed: - Cookbook topological sort fix (root cause — all deps now correct order) - kf6-attica recipe (183 files, 2.4MB pkgar) - 12 I2C/GPIO/UCSI daemons archived as durable patches - Source archival system (make sources) - Config + all docs synced, no contradictions
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org>
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
add_executable(plasma-open-settings main.cpp)
|
||||
target_compile_definitions(plasma-open-settings PRIVATE -DPROJECT_VERSION="${PROJECT_VERSION}")
|
||||
target_link_libraries(plasma-open-settings Qt::Core KF6::CoreAddons KF6::KIOGui KF6::I18n)
|
||||
install(TARGETS plasma-open-settings ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
|
||||
install(FILES org.kde.plasma.settings.open.desktop DESTINATION ${KDE_INSTALL_APPDIR})
|
||||
@@ -0,0 +1,5 @@
|
||||
#! /usr/bin/env bash
|
||||
# SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org>
|
||||
# SPDX-License-Identifier: GPL-2.0-or-later
|
||||
|
||||
$XGETTEXT *.cpp -o $podir/plasma-open-settings.pot
|
||||
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org>
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include <KAboutData>
|
||||
#include <KIO/CommandLauncherJob>
|
||||
#include <KLocalizedString>
|
||||
#include <KRuntimePlatform>
|
||||
#include <QGuiApplication>
|
||||
#include <QStandardPaths>
|
||||
#include <QTextStream>
|
||||
#include <QUrl>
|
||||
|
||||
KIO::CommandLauncherJob *openPlasmaSettings(QString &moduleName)
|
||||
{
|
||||
// TODO needs --args support in plasma-settings
|
||||
KIO::CommandLauncherJob *job = new KIO::CommandLauncherJob(QStringLiteral("plasma-settings"), {"-m", moduleName});
|
||||
job->setDesktopName(QStringLiteral("org.kde.plasma.settings"));
|
||||
return job;
|
||||
}
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QGuiApplication app(argc, argv);
|
||||
KLocalizedString::setApplicationDomain(QByteArrayLiteral("plasma-open-settings"));
|
||||
|
||||
KAboutData aboutData(QStringLiteral("plasma-open-settings"), //
|
||||
i18n("App to open Settings app"),
|
||||
QLatin1String(PROJECT_VERSION),
|
||||
i18n("A tool to start system settings"),
|
||||
KAboutLicense::GPL,
|
||||
i18n("(c) 2021, The KDE Developers"));
|
||||
|
||||
aboutData.addAuthor(QStringLiteral("Aleix Pol i Gonzalez"), {}, QStringLiteral("aleixpol@kde.org"));
|
||||
|
||||
const QUrl url(app.arguments().constLast());
|
||||
QString moduleName = url.host().isEmpty() ? url.path() : url.host();
|
||||
if (moduleName.startsWith('/')) {
|
||||
moduleName = moduleName.mid(1);
|
||||
}
|
||||
|
||||
QString args;
|
||||
if (int idx = moduleName.indexOf('/'); idx > 0) {
|
||||
args = moduleName.mid(idx + 1);
|
||||
moduleName = moduleName.left(idx);
|
||||
} else {
|
||||
args = url.path();
|
||||
args = args.mid(1);
|
||||
}
|
||||
|
||||
KIO::CommandLauncherJob *job = nullptr;
|
||||
int ret = 0;
|
||||
|
||||
if (KRuntimePlatform::runtimePlatform().contains("phone") && !QStandardPaths::findExecutable("plasma-settings").isEmpty()) {
|
||||
// plasma-settings has priority for mobile
|
||||
job = openPlasmaSettings(moduleName);
|
||||
} else if (!QStandardPaths::findExecutable("systemsettings").isEmpty()) {
|
||||
job = new KIO::CommandLauncherJob(QStringLiteral("systemsettings"), {moduleName, QStringLiteral("--args"), args});
|
||||
job->setDesktopName(QStringLiteral("org.kde.systemsettings"));
|
||||
} else if (!QStandardPaths::findExecutable("plasma-settings").isEmpty()) {
|
||||
job = openPlasmaSettings(moduleName);
|
||||
} else if (!QStandardPaths::findExecutable("kcmshell6").isEmpty()) {
|
||||
job = new KIO::CommandLauncherJob(QStringLiteral("kcmshell6"), {moduleName, QStringLiteral("--args"), args});
|
||||
} else if (!QStandardPaths::findExecutable("kdialog").isEmpty()) {
|
||||
job = new KIO::CommandLauncherJob(QStringLiteral("kdialog"), {"--error", i18n("Could not open: %1", moduleName)});
|
||||
ret = 1;
|
||||
} else {
|
||||
QTextStream err(stderr);
|
||||
err << "Could not open:" << moduleName << url.toString() << Qt::endl;
|
||||
return 32;
|
||||
}
|
||||
|
||||
if (!qEnvironmentVariableIsEmpty("XDG_ACTIVATION_TOKEN")) {
|
||||
job->setStartupId(qgetenv("XDG_ACTIVATION_TOKEN"));
|
||||
}
|
||||
return !job->exec() + ret;
|
||||
}
|
||||
+52
@@ -0,0 +1,52 @@
|
||||
# SPDX-FileCopyrightText: 2021 Aleix Pol Gonzalez <aleixpol@kde.org>
|
||||
# SPDX-License-Identifier: CC0-1.0
|
||||
|
||||
[Desktop Entry]
|
||||
Name=Open System Settings
|
||||
Name[ar]=افتح إعدادات النظام
|
||||
Name[az]=Sistem ayarlarını açın
|
||||
Name[bg]=Отваряне на системни настройки
|
||||
Name[ca]=Obre l'Arranjament del sistema
|
||||
Name[ca@valencia]=Obri Configuració del sistema
|
||||
Name[cs]=Otevřít nastavení systému
|
||||
Name[de]=Systemeinstellungen öffnen
|
||||
Name[el]=Άνοιγμα ρυθμίσεων συστήματος
|
||||
Name[en_GB]=Open System Settings
|
||||
Name[eo]=Malfermi Sistemagordojn
|
||||
Name[es]=Abrir las preferencias del sistema
|
||||
Name[eu]=Ireki Sistemako ezarpenak
|
||||
Name[fi]=Avaa järjestelmäasetukset
|
||||
Name[fr]=Ouvrir la configuration du système
|
||||
Name[gl]=Abrir a configuración do sistema
|
||||
Name[he]=פתיחת הגדרות המערכת
|
||||
Name[hsb]=Systemowe nastajenja wočinić
|
||||
Name[hu]=Rendszerbeállítások megnyitása
|
||||
Name[ia]=Aperi Preferentias de Systema
|
||||
Name[is]=Opna kerfisstillingar
|
||||
Name[it]=Apri le impostazioni di sistema
|
||||
Name[ka]=სისტემის პარამეტრების ფანჯრის გახსნა
|
||||
Name[ko]=시스템 설정 열기
|
||||
Name[lv]=Atvērt sistēmas iestatījumus
|
||||
Name[nl]=Systeeminstellingen openen
|
||||
Name[nn]=Opna systemoppsett
|
||||
Name[pl]=Otwórz ustawienia systemowe
|
||||
Name[pt]=Abrir a Configuração do Sistema
|
||||
Name[pt_BR]=Abrir configurações do sistema
|
||||
Name[ro]=Deschide configurările de sistem
|
||||
Name[ru]=Открыть «Параметры системы»
|
||||
Name[sa]=सिस्टम् सेटिंग्स् उद्घाटयन्तु
|
||||
Name[sk]=Otvoriť Systémové nastavenia
|
||||
Name[sl]=Odpri sistemske nastavitve
|
||||
Name[sv]=Öppna systeminställningar
|
||||
Name[ta]=கணினி அமைப்புகளைத் திற
|
||||
Name[tr]=Sistem Ayarlarını Aç
|
||||
Name[uk]=Відкрити «Системні параметри»
|
||||
Name[vi]=Mở Thiết lập hệ thống
|
||||
Name[x-test]=xxOpen System Settingsxx
|
||||
Name[zh_CN]=打开系统设置
|
||||
Name[zh_TW]=開啟系統設定
|
||||
MimeType=x-scheme-handler/systemsettings
|
||||
Exec=plasma-open-settings %u
|
||||
Icon=systemsettings
|
||||
Type=Application
|
||||
NoDisplay=true
|
||||
Reference in New Issue
Block a user