"Search with Google" menu from Konsole doesn't work with Brave

Hello.

I have Brave set as default browser and when i select some text in Konsole, right click and try “Search-> Search with Google” Brave opens but instead of doing a google search it displays the html of the webpage. This does work fine with Firefox and even Chromium. I also tried deleting my Brave profile but this still happened.

There is also a brief Plasma notification from kioexec i believe.

I wasn’t sure if this is a bug with Kde or Brave so decided to ask here first if anyone has seen this before.

Operating System: Arch Linux
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Brave Version: 1.77.97 Chromium: 135.0.7049.84 (Official Build) (64-bit)

It worked for me first try with my default browser as Brave.

hm interesting, thanks for the reply.

Are your kde Frameworks and Brave versions similar to mine? And does it still work now?

Operating System: Arch Linux
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0
Kernel Version: 6.14.2-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 16 × AMD Ryzen 7 7700X 8-Core Processor
Memory: 30.6 GiB of RAM
Graphics Processor 1: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Graphics Processor 2: NVIDIA GeForce GTX 1060 6GB/PCIe/SSE2
Manufacturer: ASUS


Version 1.76.82 Chromium: 134.0.6998.178 (Official Build) (64-bit)

Search from Konsole works fine for me. My default search is Brave search, but Google works as well when I select from the list.

I just noticed it happens with any link i ctrl-click inside Konsole. I will file a bug report

Hi - does the .desktop file for your browser contain %u on the Exec= line?

That seems to be necessary for URLs to be passed to the application appropriately, and has come up on some past bug reports that turned out to be related to either manual removal of that parameter, or packaging issues: 479368 – kioexec loads link as text into browser instead of requested web page.

That was exactly it. Thanks!

I recently edited the Brave entry via Kde’s menu editor and the resulting desktop file in .local/share/applications for some reason did not have the %U in it but the system wide desktop file from the package manager does have it.

After deleting the local desktop file it started working correctly again.

1 Like