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,45 @@
/*
This file is part of the KDE libraries
SPDX-FileCopyrightText: 2021 David Faure <faure@kde.org>
SPDX-License-Identifier: LGPL-2.0-only
*/
#include <KEMailClientLauncherJob>
#include <KIO/JobUiDelegate>
#include <KIO/JobUiDelegateFactory>
#include <QApplication>
#include <QDebug>
#include <QDir>
#include <QUrl>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
auto *job = new KEMailClientLauncherJob;
job->setTo({QStringLiteral("David Faure <faure@kde.org>"), QStringLiteral("Another person <null@kde.org>")});
job->setCc({QStringLiteral("CC me please <null@kde.org>")});
job->setSubject(QStringLiteral("This is the test email's subject"));
job->setBody(QStringLiteral("This email was created by kemailclientlauncherjobtest_gui in KIO."));
const QStringList urls = app.arguments();
QList<QUrl> attachments;
std::transform(urls.cbegin(), urls.cend(), std::back_inserter(attachments), [](const QString &arg) {
return QUrl::fromUserInput(arg, QDir::currentPath());
});
job->setAttachments(attachments);
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();
}