Skip to content

fix: update D-Bus name - #52

Merged
ledif merged 4 commits into
mainfrom
fix-new-dbus-name
Sep 1, 2026
Merged

fix: update D-Bus name#52
ledif merged 4 commits into
mainfrom
fix-new-dbus-name

Conversation

@ledif

@ledif ledif commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator

Bazaar changed the search provider name on the bus to io.github.kolunmi.Bazaar.SearchProvider from io.github.kolunmi.Bazaar.

The proper way to fix it is to read the keys from /var/lib/flatpak/exports/share/gnome-shell/search-providers/io.github.kolunmi.Bazaar.search-provider.ini instead of hardcoding it.

But that seems overly complicated so I'm just going to try both the old name and the new name and pick the one that works. Seems to work locally but needs more testing.

Closes #51.

@renner0e

renner0e commented Sep 1, 2026

Copy link
Copy Markdown
Member

how did you test this? I built an rpm, logged out and none of this seems to have changed for me and it's still broken?

krunner --runner bazaarrunner

or

bazaar-dbus-tool -s spotify

@ledif

ledif commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

I added a just smoke recipe for a smoke test, but basically this should work:

$ just build-container
$ just build
$ ./build/bin/bazaar-dbus-tool --search "KolourPaint"
$ ./build/bin/bazaar-dbus-tool --activate org.kde.kolourpaint

On my machine:

~/P/u/krunner-bazaar ❯❯ just smoke
Building development container image...
STEP 1/10: FROM quay.io/fedora/fedora:latest
STEP 2/10: LABEL description="Development environment for krunner-bazaar KDE plugin"
--> Using cache 657846ed8d3363ac9e6179ade1710bad1a20046bed36a584faa77a3a33e85835
--> 657846ed8d33
STEP 3/10: LABEL maintainer="Adam Fidel <adam@fidel.cloud>"
--> Using cache 65417f8b96957e8e0a8fab78f557faa38e7bc6045791150dc3bddf6f603a7f7a
--> 65417f8b9695
STEP 4/10: RUN dnf5 update -y &&     dnf5 install -y         cmake         make         gcc         gcc-c++         rpm-build         rpmdevtools         extra-cmake-modules         kf6-kconfig-devel         kf6-krunner-devel         kf6-ki18n-devel         kf6-kcoreaddons-devel         kf6-kdbusaddons          qt6-qtbase-devel         dbus-tools         gettext         sudo         vim         && dnf5 clean all
--> Using cache 4d6e07faabca3eef7c84658572ae43554bb6eb4e39050ab0940f84fbb558816e
--> 4d6e07faabca
STEP 5/10: RUN mkdir -p /workspace
--> Using cache 0b7536febb745414a0f7895fbf99ca00cabaf018d5e34b062c17665db2f15b49
--> 0b7536febb74
STEP 6/10: WORKDIR /workspace
--> Using cache 712c4aeaa29b39754d4f9f64e00117fa2273e6f36e8b2a3fe47120c01ad04ae6
--> 712c4aeaa29b
STEP 7/10: ENV CMAKE_BUILD_TYPE=Release
--> Using cache 712e91b8b58c6bb5c62767ab67bacda206eef03d608c62ae3262ed68664eaef8
--> 712e91b8b58c
STEP 8/10: ENV CMAKE_INSTALL_PREFIX=/usr
--> Using cache 432e297443a8f0275d3ebea5ba1735cfc1a06e293fc22f5cd4dbab8f4e2ba212
--> 432e297443a8
STEP 9/10: ENV QT_QPA_PLATFORM=offscreen
--> Using cache 25b877c3a4cf84a2acea70cdbb7a35cb37f2b3bd2c37b69e28922412f7b0d669
--> 25b877c3a4cf
STEP 10/10: CMD ["/bin/bash"]
--> Using cache f350f7a33ac2cb4b65999fa2f0d81c293187a6decb5df52d593d746770e913c1
COMMIT localhost/krunner-bazaar:dev
--> f350f7a33ac2
Successfully tagged localhost/krunner-bazaar:dev
f350f7a33ac2cb4b65999fa2f0d81c293187a6decb5df52d593d746770e913c1
Building krunner-bazaar...
-- The C compiler identification is GNU 15.2.1
-- The CXX compiler identification is GNU 15.2.1
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Installing in the same prefix as Qt, adopting their path scheme.
-- Looking for __GLIBC__
-- Looking for __GLIBC__ - found
-- Performing Test _OFFT_IS_64BIT
-- Performing Test _OFFT_IS_64BIT - Success
-- Performing Test HAVE_DATE_TIME
-- Performing Test HAVE_DATE_TIME - Success
-- Performing Test HAVE_STDATOMIC
-- Performing Test HAVE_STDATOMIC - Success
-- Found WrapAtomic: TRUE
-- Found OpenGL: /usr/lib64/libOpenGL.so
-- Found WrapOpenGL: TRUE
-- Found WrapVulkanHeaders: /usr/include
-- Found KF6Runner: /usr/lib64/cmake/KF6Runner/KF6RunnerConfig.cmake (found version "6.22.0")
-- Found Gettext: /usr/bin/msgmerge (found version "0.25.1")
-- Found KF6I18n: /usr/lib64/cmake/KF6I18n/KF6I18nConfig.cmake (found version "6.22.0")
-- Found KF6Config: /usr/lib64/cmake/KF6Config/KF6ConfigConfig.cmake (found version "6.22.0")
-- Found KF6: success (found suitable version "6.22.0", minimum required is "6.0.0") found components: Runner I18n Config
-- The following OPTIONAL packages have been found:

 * OpenGL
 * Vulkan
 * WrapVulkanHeaders
 * Qt6GuiTools (required version >= 6.10.1)
 * Qt6Gui (required version >= 6.5.0)
 * Qt6Core (required version >= 6.8.0)
 * Qt6CoreTools (required version >= 6.10.1)
 * Qt6DBusTools (required version >= 6.10.1)
 * Qt6QmlTools (required version >= 6.10.1)

-- The following REQUIRED packages have been found:

 * ECM (required version >= 6.0.0)
 * Qt6 (required version >= 6.8.0)
 * KF6Runner (required version >= 6.0.0)
 * KF6Config (required version >= 6.0.0)
 * KF6 (required version >= 6.0.0)
 * Gettext
 * KF6I18n

-- The following OPTIONAL packages have not been found:

 * Qt6QmlCompilerPlusPrivateTools (required version >= 6.10.1)

-- Configuring done (1.2s)
-- Generating done (0.0s)
-- Build files have been written to: /workspace/build
[ 11%] Generating ts...
[ 11%] Generating mo...
[ 11%] Built target bazaarclient_autogen_timestamp_deps
[ 17%] Automatic MOC for target bazaarclient
[ 17%] Built target tsfiles-3ce80a940ad3c1911b0574da4975e5e4
[ 17%] Built target pofiles-3ce80a940ad3c1911b0574da4975e5e4
[ 17%] Built target bazaarclient_autogen
[ 29%] Building CXX object src/CMakeFiles/bazaarclient.dir/bazaarclient.cpp.o
[ 29%] Building CXX object src/CMakeFiles/bazaarclient.dir/bazaarclient_autogen/mocs_compilation.cpp.o
[ 35%] Linking CXX static library ../lib/libbazaarclient.a
[ 41%] Built target bazaarclient
[ 41%] Built target bazaarrunner_autogen_timestamp_deps
[ 41%] Built target bazaar-dbus-tool_autogen_timestamp_deps
[ 52%] Automatic MOC for target bazaarrunner
[ 52%] Automatic MOC for target bazaar-dbus-tool
[ 52%] Built target bazaar-dbus-tool_autogen
[ 64%] Building CXX object src/CMakeFiles/bazaar-dbus-tool.dir/bazaar-dbus-tool.cpp.o
[ 64%] Building CXX object src/CMakeFiles/bazaar-dbus-tool.dir/bazaar-dbus-tool_autogen/mocs_compilation.cpp.o
[ 64%] Built target bazaarrunner_autogen
[ 76%] Building CXX object src/CMakeFiles/bazaarrunner.dir/bazaarrunner.cpp.o
[ 76%] Building CXX object src/CMakeFiles/bazaarrunner.dir/bazaarrunner_autogen/mocs_compilation.cpp.o
[ 82%] Linking CXX executable ../bin/bazaar-dbus-tool
[ 88%] Built target bazaar-dbus-tool
[ 94%] Linking CXX shared module ../bin/kf6/krunner/bazaarrunner.so
[100%] Built target bazaarrunner
Successfully connected to Bazaar D-Bus service io.github.kolunmi.Bazaar.SearchProvider
Searching for: KolourPaint
Found 2 results:

Result 1:
  ID: org.kde.kolourpaint
  Name: KolourPaint
  Description: Paint Program
  Icon: /home/adam/.var/app/io.github.kolunmi.Bazaar/cache/io.github.kolunmi.Bazaar/entry/96c62618ef42b004c3281e13b7fa2d72-256x256

Result 2:
  ID: com.voxdsp.VoxelPaint
  Name: Voxel Paint
  Description: Paint in 3D using Voxels
  Icon: /home/adam/.var/app/io.github.kolunmi.Bazaar/cache/io.github.kolunmi.Bazaar/entry/e83fc9e42faca045f8767e11ccc7c4d5-256x256

Successfully connected to Bazaar D-Bus service io.github.kolunmi.Bazaar.SearchProvider
Activating application: org.kde.kolourpaint
Successfully activated application: org.kde.kolourpaint

@ledif
ledif marked this pull request as ready for review September 1, 2026 17:27
@ledif

ledif commented Sep 1, 2026

Copy link
Copy Markdown
Collaborator Author

I installed it with just install as well (which writes it to a /usr overlay), logged out and it's working for me again.

image

@renner0e

renner0e commented Sep 1, 2026

Copy link
Copy Markdown
Member

huh, wonder what I did wrong, I just patched the rpm in ublue-os/packages...

whatever, it works now with the recipe + sysextbuddy + restart plasma-krunner

I'm not sure if this was intended behavior, so if you don't have bazaar running at all, search for anything in plasma and it spawns the bazaar-daemon (which takes up about 10M!) and the results show up instantly, close app launcher and the process is gone. It's just incredible now. Thanks <3

@ledif
ledif merged commit 5ad1503 into main Sep 1, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

no search results past v0.9.2

2 participants