Bug 502908 - Respect global default search engine rather than hardcoding DuckDuckGo
Summary: Respect global default search engine rather than hardcoding DuckDuckGo
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: discover (other bugs)
Version First Reported In: 6.3.4
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Nate Graham
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-17 03:54 UTC by Stephen
Modified: 2025-04-25 21:56 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In: 6.4.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephen 2025-04-17 03:54:07 UTC
SUMMARY
The default search for Discover is Duckduckgo, which is banned in Indonesia, making it a hassle to search for software that is not in Snap. It would be good to be able to change the default search engine, however according to my post in the Newbie section on Kubuntu, https://www.kubuntuforums.net/forum/newbie-support/help-the-new-guy/686137-discover-s-default-search-engine-is-duckduckgo-which-is-banned-in-indonesia-how-can-i-change-it-to-something-else, it is hard-coded.

STEPS TO REPRODUCE
1. Open Discover, search for software not in the Snap store.
2. Click on 'Search the web for [software name not in store, such as Cronopete'
3. Duckduckgo is banned in Indonesia so the search fails.
One should be able to choose from a list of search engines.

OBSERVED RESULT
Search Fails

EXPECTED RESULT
Search succeeds

SOFTWARE/OS VERSIONS
Kubuntu 24.10
Comment 1 Bug Janitor Service 2025-04-17 04:33:39 UTC
Thank you for the bug report!

However Plasma 6.1.5 is no longer eligible for support or maintenance from KDE; supported versions are 5.27. (LTS), and 6.3 (non-LTS) or newer. Please upgrade to a supported version as soon as your distribution makes it available to you. Plasma is a fast-moving project, and bugs in one version are often fixed in the next one.

If you need support for Plasma 6.1.5, please contact your distribution, who bears the responsibility of providing support for older releases that are no longer supported by KDE.

If you can reproduce the issue after upgrading to a supported version, feel free to re-open this bug report.
Comment 2 Clay Weber 2025-04-17 04:53:46 UTC
I confirm this happens on the current Discover 6.3.4.
Comment 3 Nate Graham 2025-04-17 21:12:26 UTC
It would appear we can use KURISearchFilterEngine::defaultSearchEngine() in KIO for this.
Comment 4 Nate Graham 2025-04-17 22:09:49 UTC
Or not, that's private. Looking for another solution.

The change here will be to respect the system's default web search provider, and then in Indonesia it can be changed from DuckDuckGo to something else on a systemwide basis.
Comment 5 Bug Janitor Service 2025-04-18 19:15:38 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/1081
Comment 6 Nate Graham 2025-04-21 04:25:00 UTC
Git commit 1e71f6c730a4a4ef81895c153d8ea677566ca57f by Nate Graham.
Committed on 19/04/2025 at 17:31.
Pushed by ngraham into branch 'master'.

Respect systemwide default search engine

Right now we hardcode DuckDuckGo, which ignores the user's preference
and doesn't work in Indonesia, where it's currently blocked.

Instead, get the actual configured default search engine, which the user
can change if desired or needed.
FIXED-IN: 6.4.0

M  +1    -0    discover/CMakeLists.txt
M  +10   -0    discover/DiscoverObject.cpp
M  +1    -0    discover/DiscoverObject.h
M  +1    -1    discover/qml/ApplicationsListPage.qml

https://invent.kde.org/plasma/discover/-/commit/1e71f6c730a4a4ef81895c153d8ea677566ca57f