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 2024-06-09 20:19:52 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/kf6-krunner (Old) and /work/SRC/openSUSE:Factory/.kf6-krunner.new.19518 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "kf6-krunner" Sun Jun 9 20:19:52 2024 rev:4 rq:1179299 version:6.3.0 Changes: -------- --- /work/SRC/openSUSE:Factory/kf6-krunner/kf6-krunner.changes 2024-05-11 18:23:26.819127980 +0200 +++ /work/SRC/openSUSE:Factory/.kf6-krunner.new.19518/kf6-krunner.changes 2024-06-09 20:23:08.211808342 +0200 @@ -1,0 +2,17 @@ +Wed Jun 5 10:11:54 UTC 2024 - Christophe Marin <christophe@krop.fr> + +- Update to 6.3.0 + * New feature release + * For more details please see: + * https://kde.org/announcements/frameworks/6/6.3.0/ +- Changes since 6.2.0: + * Fix X-KDE-ConfigModule not working for DBus runners + * Fix same query not yielding results in new match session + * Remove explicit maintainer from metainfo + * templates/runner6python: Only depend on shebang line for executing + * Rename entrypoint file to always be main.py + * Document krunner-plugininstallerrc file + * Document how AbstractRunner::config is resolved + * runnercontext: Fix saving the launch counts + +------------------------------------------------------------------- Old: ---- krunner-6.2.0.tar.xz krunner-6.2.0.tar.xz.sig New: ---- krunner-6.3.0.tar.xz krunner-6.3.0.tar.xz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ kf6-krunner.spec ++++++ --- /var/tmp/diff_new_pack.37omHs/_old 2024-06-09 20:23:08.911833602 +0200 +++ /var/tmp/diff_new_pack.37omHs/_new 2024-06-09 20:23:08.911833602 +0200 @@ -19,13 +19,13 @@ %define qt6_version 6.6.0 %define rname krunner -# Full KF6 version (e.g. 6.2.0) +# Full KF6 version (e.g. 6.3.0) %{!?_kf6_version: %global _kf6_version %{version}} # Last major and minor KF6 version (e.g. 6.0) %{!?_kf6_bugfix_version: %define _kf6_bugfix_version %(echo %{_kf6_version} | awk -F. '{print $1"."$2}')} %bcond_without released Name: kf6-krunner -Version: 6.2.0 +Version: 6.3.0 Release: 0 Summary: KDE Framework for providing different actions given a string query License: LGPL-2.1-or-later ++++++ krunner-6.2.0.tar.xz -> krunner-6.3.0.tar.xz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.2.0/CMakeLists.txt new/krunner-6.3.0/CMakeLists.txt --- old/krunner-6.2.0/CMakeLists.txt 2024-05-03 14:26:37.000000000 +0200 +++ new/krunner-6.3.0/CMakeLists.txt 2024-05-31 15:28:09.000000000 +0200 @@ -3,13 +3,13 @@ cmake_minimum_required(VERSION 3.16) -set(KF_VERSION "6.2.0") # handled by release scripts -set(KF_DEP_VERSION "6.2.0") # handled by release scripts +set(KF_VERSION "6.3.0") # handled by release scripts +set(KF_DEP_VERSION "6.3.0") # handled by release scripts project(KRunner VERSION ${KF_VERSION}) # ECM setup include(FeatureSummary) -find_package(ECM 6.2.0 NO_MODULE) +find_package(ECM 6.3.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) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.2.0/metainfo.yaml new/krunner-6.3.0/metainfo.yaml --- old/krunner-6.2.0/metainfo.yaml 2024-05-03 14:26:37.000000000 +0200 +++ new/krunner-6.3.0/metainfo.yaml 2024-05-31 15:28:09.000000000 +0200 @@ -1,7 +1,6 @@ # SPDX-FileCopyrightText: none # SPDX-License-Identifier: CC0-1.0 -maintainer: alex description: Parallelized query system tier: 3 type: solution diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.2.0/src/abstractrunner.h new/krunner-6.3.0/src/abstractrunner.h --- old/krunner-6.2.0/src/abstractrunner.h 2024-05-03 14:26:37.000000000 +0200 +++ new/krunner-6.3.0/src/abstractrunner.h 2024-05-31 15:28:09.000000000 +0200 @@ -231,6 +231,8 @@ /** * Provides access to the runner's configuration object. + * This config is saved in the "krunnerrc" file in the [Runners][<pluginId>] config group + * Settings should be written in a KDE config module. See https://develop.kde.org/docs/plasma/krunner/#runner-configuration */ KConfigGroup config() const; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.2.0/src/kpluginmetadata_utils_p.h new/krunner-6.3.0/src/kpluginmetadata_utils_p.h --- old/krunner-6.2.0/src/kpluginmetadata_utils_p.h 2024-05-03 14:26:37.000000000 +0200 +++ new/krunner-6.3.0/src/kpluginmetadata_utils_p.h 2024-05-31 15:28:09.000000000 +0200 @@ -46,6 +46,7 @@ copyIfExists(grp, root, "X-Plasma-Request-Actions-Once", false); copyIfExists(grp, root, "X-Plasma-Runner-Min-Letter-Count", 0); copyIfExists(grp, root, "X-Plasma-Runner-Match-Regex"); + copyIfExists(grp, root, "X-KDE-ConfigModule"); // DBus-Runners may also specify KCMs root.insert(QLatin1String("X-Plasma-Runner-Syntaxes"), QJsonArray::fromStringList(grp.readEntry("X-Plasma-Runner-Syntaxes", QStringList()))); root.insert(QLatin1String("X-Plasma-Runner-Syntax-Descriptions"), QJsonArray::fromStringList(grp.readEntry("X-Plasma-Runner-Syntax-Descriptions", QStringList()))); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.2.0/src/model/runnerresultsmodel.cpp new/krunner-6.3.0/src/model/runnerresultsmodel.cpp --- old/krunner-6.2.0/src/model/runnerresultsmodel.cpp 2024-05-03 14:26:37.000000000 +0200 +++ new/krunner-6.3.0/src/model/runnerresultsmodel.cpp 2024-05-31 15:28:09.000000000 +0200 @@ -183,6 +183,12 @@ m_manager->matchSessionComplete(); setQuerying(false); + // When our session is over, the term is also no longer relevant + // If the same term is used again, the RunnerManager should be asked again + if (!m_queryString.isEmpty()) { + m_queryString.clear(); + Q_EMIT queryStringChanged(m_queryString); + } beginResetModel(); m_categories.clear(); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.2.0/src/runnercontext.cpp new/krunner-6.3.0/src/runnercontext.cpp --- old/krunner-6.2.0/src/runnercontext.cpp 2024-05-03 14:26:37.000000000 +0200 +++ new/krunner-6.3.0/src/runnercontext.cpp 2024-05-31 15:28:09.000000000 +0200 @@ -39,6 +39,7 @@ : QSharedData(p) , m_manager(p.m_manager) , launchCounts(p.launchCounts) + , changedLaunchCounts(p.changedLaunchCounts) { } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.2.0/templates/runner6python/%{APPNAMELC}.py new/krunner-6.3.0/templates/runner6python/%{APPNAMELC}.py --- old/krunner-6.2.0/templates/runner6python/%{APPNAMELC}.py 2024-05-03 14:26:37.000000000 +0200 +++ new/krunner-6.3.0/templates/runner6python/%{APPNAMELC}.py 1970-01-01 01:00:00.000000000 +0100 @@ -1,37 +0,0 @@ -#!/usr/bin/python3 - -import dbus.service -from dbus.mainloop.glib import DBusGMainLoop -from gi.repository import GLib - -DBusGMainLoop(set_as_default=True) - -objpath = "/runner" # Default value for X-Plasma-DBusRunner-Path metadata property -iface = "org.kde.krunner1" - - -class Runner(dbus.service.Object): - def __init__(self): - dbus.service.Object.__init__(self, dbus.service.BusName("org.kde.%{APPNAMELC}", dbus.SessionBus()), objpath) - - @dbus.service.method(iface, in_signature='s', out_signature='a(sssida{sv})') - def Match(self, query: str): - """This method is used to get the matches and it returns a list of tupels""" - if query == "hello": - # data, text, icon, type (KRunner::QueryType), relevance (0-1), properties (subtext, category, multiline(bool) and urls) - return [("Hello", "Hello from %{APPNAME}!", "document-edit", 100, 1.0, {'subtext': 'Demo Subtext'})] - return [] - - @dbus.service.method(iface, out_signature='a(sss)') - def Actions(self): - # id, text, icon - return [("id", "Tooltip", "planetkde")] - - @dbus.service.method(iface, in_signature='ss') - def Run(self, data: str, action_id: str): - print(data, action_id) - - -runner = Runner() -loop = GLib.MainLoop() -loop.run() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.2.0/templates/runner6python/install.sh new/krunner-6.3.0/templates/runner6python/install.sh --- old/krunner-6.2.0/templates/runner6python/install.sh 2024-05-03 14:26:37.000000000 +0200 +++ new/krunner-6.3.0/templates/runner6python/install.sh 2024-05-31 15:28:09.000000000 +0200 @@ -1,6 +1,7 @@ #!/bin/bash -# Exit if something fails +# Standalone install script for copying files + set -e prefix="${XDG_DATA_HOME:-$HOME/.local/share}" @@ -11,7 +12,7 @@ mkdir -p $services_dir cp %{APPNAMELC}.desktop $krunner_dbusdir -printf "[D-BUS Service]\nName=org.kde.%{APPNAMELC}\nExec=/usr/bin/python3 \"$PWD/%{APPNAMELC}.py\"" > $services_dir/org.kde.%{APPNAMELC}.service +printf "[D-BUS Service]\nName=org.kde.%{APPNAMELC}\nExec=\"$PWD/main.py\"" > $services_dir/org.kde.%{APPNAMELC}.service kquitapp6 krunner diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.2.0/templates/runner6python/krunner-plugininstallerrc new/krunner-6.3.0/templates/runner6python/krunner-plugininstallerrc --- old/krunner-6.2.0/templates/runner6python/krunner-plugininstallerrc 2024-05-03 14:26:37.000000000 +0200 +++ new/krunner-6.3.0/templates/runner6python/krunner-plugininstallerrc 2024-05-31 15:28:09.000000000 +0200 @@ -1,2 +1,3 @@ +# File for krunner-plugininstaller executable. This allows for easier installation in the "Get New Plugins" button of the config module MetaDataFile=%{APPNAMELC}.desktop -Exec=python3 %{PROJECTDIR}/main.py +Exec=%{PROJECTDIR}/main.py diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/krunner-6.2.0/templates/runner6python/main.py new/krunner-6.3.0/templates/runner6python/main.py --- old/krunner-6.2.0/templates/runner6python/main.py 1970-01-01 01:00:00.000000000 +0100 +++ new/krunner-6.3.0/templates/runner6python/main.py 2024-05-31 15:28:09.000000000 +0200 @@ -0,0 +1,37 @@ +#!/usr/bin/python3 + +import dbus.service +from dbus.mainloop.glib import DBusGMainLoop +from gi.repository import GLib + +DBusGMainLoop(set_as_default=True) + +objpath = "/runner" # Default value for X-Plasma-DBusRunner-Path metadata property +iface = "org.kde.krunner1" + + +class Runner(dbus.service.Object): + def __init__(self): + dbus.service.Object.__init__(self, dbus.service.BusName("org.kde.%{APPNAMELC}", dbus.SessionBus()), objpath) + + @dbus.service.method(iface, in_signature='s', out_signature='a(sssida{sv})') + def Match(self, query: str): + """This method is used to get the matches and it returns a list of tupels""" + if query == "hello": + # data, text, icon, type (KRunner::QueryType), relevance (0-1), properties (subtext, category, multiline(bool) and urls) + return [("Hello", "Hello from %{APPNAME}!", "document-edit", 100, 1.0, {'subtext': 'Demo Subtext'})] + return [] + + @dbus.service.method(iface, out_signature='a(sss)') + def Actions(self): + # id, text, icon + return [("id", "Tooltip", "planetkde")] + + @dbus.service.method(iface, in_signature='ss') + def Run(self, data: str, action_id: str): + print(data, action_id) + + +runner = Runner() +loop = GLib.MainLoop() +loop.run()
participants (1)
-
Source-Sync