Advance Wayland and KDE package bring-up

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
2026-04-14 10:51:06 +01:00
parent 51f3c21121
commit cf12defd28
15214 changed files with 20594243 additions and 269 deletions
@@ -0,0 +1,46 @@
/*
This file is part of the KDE libraries
SPDX-FileCopyrightText: 2021 David Faure <faure@kde.org>
SPDX-License-Identifier: LGPL-2.0-only
*/
#include <KIO/JobUiDelegateFactory>
#include <KTerminalLauncherJob>
#include <KService>
#include <QApplication>
#include <QDebug>
#include <QProcessEnvironment>
#include <QStandardPaths>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QString command;
if (argc > 1) {
command = QString::fromLocal8Bit(argv[1]);
}
auto *job = new KTerminalLauncherJob(command);
QProcessEnvironment env = QProcessEnvironment::systemEnvironment();
env.insert(QStringLiteral("MYVAR"), QStringLiteral("myvalue")); // for interactive testing that it was set
job->setProcessEnvironment(env);
job->setWorkingDirectory(QStandardPaths::writableLocation(QStandardPaths::DownloadLocation)); // for testing
job->setUiDelegate(KIO::createDefaultJobUiDelegate(KJobUiDelegate::AutoHandlingEnabled, nullptr));
job->start();
QObject::connect(job, &KJob::result, &app, [&]() {
if (job->error()) {
qWarning() << job->errorString();
app.exit(1);
} else {
qDebug() << "Successfully started";
app.exit(0);
}
});
return app.exec();
}