Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package kf6-krunner for openSUSE:Factory checked in at 2026-06-16 13:51:43 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kf6-krunner (Old) and /work/SRC/openSUSE:Factory/.kf6-krunner.new.1981 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "kf6-krunner" Tue Jun 16 13:51:43 2026 rev:28 rq:1358905 version:6.27.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kf6-krunner/kf6-krunner.changes 2026-05-11 16:57:48.793974647 +0200 +++ /work/SRC/openSUSE:Factory/.kf6-krunner.new.1981/kf6-krunner.changes 2026-06-16 13:56:42.837482548 +0200 @@ -1,0 +2,17 @@ +Sat Jun 6 11:42:20 UTC 2026 - Christophe Marin <[email protected]> + +- Update to 6.27.0 + * New feature release + * For more details please see: + * https://kde.org/announcements/frameworks/6/6.27.0 +- Changes since 6.26.0: + * Update dependency version to 6.27.0 + * Extract and install Qt metatypes + * RunnerManager: move spurious member into pimpl class + * ResultsModel: Directly call toInt from QVariant to avoid implicit conversion + * RunnerManager: Avoid weird use of mutable iterator in favor of simple for loop + * RunnerContext: Use QHash for unique IDs since order is not relevant + * Use std::min/max instead of QT macros + * Update version to 6.27.0 + +------------------------------------------------------------------- Old: ---- krunner-6.26.0.tar.xz krunner-6.26.0.tar.xz.sig New: ---- krunner-6.27.0.tar.xz krunner-6.27.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kf6-krunner.spec ++++++ --- /var/tmp/diff_new_pack.V1KrGP/_old 2026-06-16 13:56:44.453550042 +0200 +++ /var/tmp/diff_new_pack.V1KrGP/_new 2026-06-16 13:56:44.453550042 +0200 @@ -1,7 +1,7 @@ # # spec file for package kf6-krunner # -# Copyright (c) 2025 SUSE LLC and contributors +# Copyright (c) 2026 SUSE LLC and contributors # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -19,11 +19,11 @@ %define qt6_version 6.9.0 %define rname krunner -# Full KF6 version (e.g. 6.26.0) +# Full KF6 version (e.g. 6.27.0) %{!?_kf6_version: %global _kf6_version %{version}} %bcond_without released Name: kf6-krunner -Version: 6.26.0 +Version: 6.27.0 Release: 0 Summary: KDE Framework for providing different actions given a string query License: LGPL-2.1-or-later @@ -94,4 +94,5 @@ %{_kf6_includedir}/KRunner/ %{_kf6_libdir}/libKF6Runner.so %{_kf6_sharedir}/kdevappwizard/ +%{_qt6_metatypesdir}/qt6kf6runner_metatypes.json ++++++ krunner-6.26.0.tar.xz -> krunner-6.27.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.26.0/CMakeLists.txt new/krunner-6.27.0/CMakeLists.txt --- old/krunner-6.26.0/CMakeLists.txt 2026-05-01 13:55:16.000000000 +0200 +++ new/krunner-6.27.0/CMakeLists.txt 2026-06-05 17:49:03.000000000 +0200 @@ -3,13 +3,13 @@ cmake_minimum_required(VERSION 3.29) -set(KF_VERSION "6.26.0") # handled by release scripts -set(KF_DEP_VERSION "6.26.0") # handled by release scripts +set(KF_VERSION "6.27.0") # handled by release scripts +set(KF_DEP_VERSION "6.27.0") # handled by release scripts project(KRunner VERSION ${KF_VERSION}) # ECM setup include(FeatureSummary) -find_package(ECM 6.26.0 NO_MODULE) +find_package(ECM 6.27.0 NO_MODULE) set_package_properties(ECM PROPERTIES TYPE REQUIRED DESCRIPTION "Extra CMake Modules." URL "https://commits.kde.org/extra-cmake-modules") feature_summary(WHAT REQUIRED_PACKAGES_NOT_FOUND FATAL_ON_MISSING_REQUIRED_PACKAGES) @@ -47,7 +47,7 @@ ecm_set_disabled_deprecation_versions( QT 6.11.0 - KF 6.23.0 + KF 6.26.0 ) find_package(KF6Config ${KF_DEP_VERSION} REQUIRED) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.26.0/src/CMakeLists.txt new/krunner-6.27.0/src/CMakeLists.txt --- old/krunner-6.26.0/src/CMakeLists.txt 2026-05-01 13:55:16.000000000 +0200 +++ new/krunner-6.27.0/src/CMakeLists.txt 2026-06-05 17:49:03.000000000 +0200 @@ -4,6 +4,13 @@ add_library(KF6Runner SHARED) add_library(KF6::Runner ALIAS KF6Runner) +qt_extract_metatypes(KF6Runner OUTPUT_FILES METATYPES_FILE) + +# see https://qt-project.atlassian.net/browse/QTBUG-123052 +# might be replaced with proper Qt API once that exists +get_filename_component(METATYPES_FILE_NAME ${METATYPES_FILE} NAME) +target_sources(KF6Runner INTERFACE $<INSTALL_INTERFACE:${KDE_INSTALL_QTMETATYPESDIR}/${METATYPES_FILE_NAME}>) + set_target_properties(KF6Runner PROPERTIES VERSION ${KRUNNER_VERSION} SOVERSION ${KRUNNER_SOVERSION} @@ -59,7 +66,6 @@ PUBLIC Qt6::Core KF6::CoreAddons # KPluginFactory - KF6::ConfigCore PRIVATE Qt6::DBus Qt6::Gui @@ -112,6 +118,8 @@ ecm_generate_qdoc(KF6Runner krunner.qdocconf) +install(FILES ${METATYPES_FILE} DESTINATION ${KDE_INSTALL_QTMETATYPESDIR}) + install(FILES "data/org.kde.krunner1.xml" DESTINATION ${KDE_INSTALL_DBUSINTERFACEDIR} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.26.0/src/model/resultsmodel.cpp new/krunner-6.27.0/src/model/resultsmodel.cpp --- old/krunner-6.26.0/src/model/resultsmodel.cpp 2026-05-01 13:55:16.000000000 +0200 +++ new/krunner-6.27.0/src/model/resultsmodel.cpp 2026-06-05 17:49:03.000000000 +0200 @@ -63,8 +63,8 @@ return favoriteA > favoriteB; } - const int typeA = sourceA.data(ResultsModel::CategoryRelevanceRole).toReal(); - const int typeB = sourceB.data(ResultsModel::CategoryRelevanceRole).toReal(); + const int typeA = sourceA.data(ResultsModel::CategoryRelevanceRole).toInt(); + const int typeB = sourceB.data(ResultsModel::CategoryRelevanceRole).toInt(); return typeA < typeB; } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.26.0/src/model/runnerresultsmodel.cpp new/krunner-6.27.0/src/model/runnerresultsmodel.cpp --- old/krunner-6.26.0/src/model/runnerresultsmodel.cpp 2026-05-01 13:55:16.000000000 +0200 +++ new/krunner-6.27.0/src/model/runnerresultsmodel.cpp 2026-06-05 17:49:03.000000000 +0200 @@ -84,7 +84,7 @@ const int oldCount = oldMatchesInCategory.count(); const int newCount = newMatchesInCategory.count(); - const int countCeiling = qMin(oldCount, newCount); + const int countCeiling = std::min(oldCount, newCount); for (int i = 0; i < countCeiling; ++i) { auto &oldMatch = oldMatchesInCategory[i]; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.26.0/src/querymatch.cpp new/krunner-6.27.0/src/querymatch.cpp --- old/krunner-6.26.0/src/querymatch.cpp 2026-05-01 13:55:16.000000000 +0200 +++ new/krunner-6.27.0/src/querymatch.cpp 2026-06-05 17:49:03.000000000 +0200 @@ -134,7 +134,7 @@ void QueryMatch::setRelevance(qreal relevance) { - d->relevance = qMax(qreal(0.0), relevance); + d->relevance = std::max(qreal(0.0), relevance); } qreal QueryMatch::relevance() const diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.26.0/src/runnercontext.cpp new/krunner-6.27.0/src/runnercontext.cpp --- old/krunner-6.26.0/src/runnercontext.cpp 2026-05-01 13:55:16.000000000 +0200 +++ new/krunner-6.27.0/src/runnercontext.cpp 2026-06-05 17:49:03.000000000 +0200 @@ -82,7 +82,7 @@ QString term; bool singleRunnerQueryMode = false; bool shouldIgnoreCurrentMatchForHistory = false; - QMap<QString, QueryMatch> uniqueIds; + QHash<QString, QueryMatch> uniqueIds; QString requestedText; int requestedCursorPosition = 0; qint64 queryStartTs = 0; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.26.0/src/runnermanager.cpp new/krunner-6.27.0/src/runnermanager.cpp --- old/krunner-6.26.0/src/runnermanager.cpp 2026-05-01 13:55:16.000000000 +0200 +++ new/krunner-6.27.0/src/runnermanager.cpp 2026-06-05 17:49:03.000000000 +0200 @@ -35,7 +35,10 @@ class RunnerManagerPrivate { public: - RunnerManagerPrivate(const KConfigGroup &configurationGroup, const KConfigGroup &stateConfigGroup, RunnerManager *parent) + RunnerManagerPrivate(const KConfigGroup &configurationGroup, + const KConfigGroup &stateConfigGroup, + const KSharedConfig::Ptr &defaultStatePtr, + RunnerManager *parent) : q(parent) , context(parent) , pluginConf(configurationGroup) @@ -54,6 +57,13 @@ QObject::connect(q, &RunnerManager::matchesChanged, q, [&] { lastMatchChangeSignalled.restart(); }); + + if (defaultStatePtr) { + defaultStateWatcher = KConfigWatcher::create(defaultStatePtr); + QObject::connect(defaultStateWatcher.data(), &KConfigWatcher::configChanged, q, [this]() { + Q_EMIT q->historyChanged(); + }); + } } void scheduleMatchesChanged() @@ -124,15 +134,12 @@ void loadRunners(const QString &singleRunnerId = QString()) { - QList<KPluginMetaData> offers = RunnerManager::runnerMetaDataList(); - const bool loadAll = stateData.readEntry("loadAll", false); const bool noWhiteList = whiteList.isEmpty(); + const QList<KPluginMetaData> offers = RunnerManager::runnerMetaDataList(); QList<AbstractRunner *> deadRunners; - QMutableListIterator<KPluginMetaData> it(offers); - while (it.hasNext()) { - const KPluginMetaData &description = it.next(); + for (const auto &description : offers) { qCDebug(KRUNNER) << "Loading runner: " << description.pluginId(); const QString runnerName = description.pluginId(); @@ -376,11 +383,12 @@ KConfigGroup pluginConf; KConfigGroup stateData; QSet<QString> disabledRunnerIds; // Runners that are disabled but were loaded as single runners + KConfigWatcher::Ptr defaultStateWatcher; }; RunnerManager::RunnerManager(const KConfigGroup &pluginConfigGroup, const KConfigGroup &stateConfigGroup, QObject *parent) : QObject(parent) - , d(new RunnerManagerPrivate(pluginConfigGroup, stateConfigGroup, this)) + , d(new RunnerManagerPrivate(pluginConfigGroup, stateConfigGroup, KSharedConfig::Ptr(), this)) // TODO: need to watch stateconfig also here? { Q_ASSERT(pluginConfigGroup.isValid()); Q_ASSERT(stateConfigGroup.isValid()); @@ -393,11 +401,8 @@ auto configPtr = KSharedConfig::openConfig(QStringLiteral("krunnerrc"), KConfig::NoGlobals); d = std::make_unique<RunnerManagerPrivate>(configPtr->group(QStringLiteral("Plugins")), defaultStatePtr->group(QStringLiteral("PlasmaRunnerManager")), + defaultStatePtr, this); - m_stateWatcher = KConfigWatcher::create(defaultStatePtr); - connect(m_stateWatcher.data(), &KConfigWatcher::configChanged, this, [this]() { - Q_EMIT historyChanged(); - }); } RunnerManager::~RunnerManager() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.26.0/src/runnermanager.h new/krunner-6.27.0/src/runnermanager.h --- old/krunner-6.26.0/src/runnermanager.h 2026-05-01 13:55:16.000000000 +0200 +++ new/krunner-6.27.0/src/runnermanager.h 2026-06-05 17:49:03.000000000 +0200 @@ -13,7 +13,6 @@ #include <QList> #include <QObject> -#include <KConfigWatcher> #include <KPluginMetaData> #include "abstractrunner.h" @@ -299,7 +298,6 @@ KRUNNER_NO_EXPORT Q_INVOKABLE void onMatchesChanged(); std::unique_ptr<RunnerManagerPrivate> d; - KConfigWatcher::Ptr m_stateWatcher; friend class RunnerManagerPrivate; friend AbstractRunnerTest; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.26.0/templates/runner6/runner.kdevtemplate new/krunner-6.27.0/templates/runner6/runner.kdevtemplate --- old/krunner-6.26.0/templates/runner6/runner.kdevtemplate 2026-05-01 13:55:16.000000000 +0200 +++ new/krunner-6.27.0/templates/runner6/runner.kdevtemplate 2026-06-05 17:49:03.000000000 +0200 @@ -36,6 +36,7 @@ Name[sl]=C++ (Qt6) Name[sv]=C++ (Qt6) Name[tr]=C++ (Qt6) +Name[ug]=C++ (Qt6) Name[uk]=C++ (Qt6) Name[zh_CN]=C++ (Qt6) Name[zh_TW]=C++ (Qt6) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.26.0/templates/runner6python/runnerpy.kdevtemplate new/krunner-6.27.0/templates/runner6python/runnerpy.kdevtemplate --- old/krunner-6.26.0/templates/runner6python/runnerpy.kdevtemplate 2026-05-01 13:55:16.000000000 +0200 +++ new/krunner-6.27.0/templates/runner6python/runnerpy.kdevtemplate 2026-06-05 17:49:03.000000000 +0200 @@ -34,6 +34,7 @@ Name[sl]=Vtičnik za Python KRunner (Qt6) Name[sv]=Python-insticksprogram för Kör program (Qt6) Name[tr]=Python K Çalıştır Eklentisi (Qt6) +Name[ug]=Python KRunner قىستۇرمىسى (Qt6) Name[uk]=Додаток до KRunner мовою Python (Qt6) Name[zh_CN]=Python KRunner 插件 (Qt6) Name[zh_TW]=Python KRunner 外掛程式 (Qt6)
