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,73 @@
/*
This file is part of the KDE libraries
SPDX-FileCopyrightText: 2000, 2006 David Faure <faure@kde.org>
SPDX-License-Identifier: LGPL-2.0-only
*/
#include "keditbookmarks_p.h"
#include <QGuiApplication>
#include <QObject>
#include <QProcess>
#include <QStandardPaths>
#include "kbookmarksettings_p.h"
void KEditBookmarks::setBrowserMode(bool browserMode)
{
m_browserMode = browserMode;
}
KEditBookmarks::OpenResult KEditBookmarks::openForFile(const QString &file)
{
QStringList args;
args << QStringLiteral("--customcaption") << QGuiApplication::applicationDisplayName();
if (!m_browserMode) {
args << QStringLiteral("--nobrowser");
}
args << file;
return startKEditBookmarks(args);
}
KEditBookmarks::OpenResult KEditBookmarks::openForFileAtAddress(const QString &file, const QString &address)
{
QStringList args;
args << QStringLiteral("--customcaption") << QGuiApplication::applicationDisplayName();
if (!m_browserMode) {
args << QStringLiteral("--nobrowser");
}
args << QStringLiteral("--address") << address;
args << file;
return startKEditBookmarks(args);
}
KEditBookmarks::OpenResult KEditBookmarks::startKEditBookmarks(const QStringList &args)
{
const QString exec = QStandardPaths::findExecutable(QStringLiteral(KEDITBOOKMARKS_BINARY));
if (!exec.isEmpty()) {
bool success = QProcess::startDetached(exec, args);
if (!success) {
OpenResult result;
result.m_sucess = false;
result.m_errorMessage = QObject::tr("keditbookmarks could not be started");
return result;
}
} else {
OpenResult result;
result.m_sucess = false;
result.m_errorMessage = QObject::tr("The keditbookmarks executable was not found");
return result;
}
OpenResult result;
result.m_sucess = true;
return result;
}