Bug 513366

Summary: Hard-coded OS name string in Discover
Product: [Applications] Discover Reporter: Augusto Fornitani <augusto.fornitani>
Component: discoverAssignee: Plasma Bugs List <plasma-bugs-null>
Status: CONFIRMED ---    
Severity: minor CC: aleixpol, ananddointern1234, kde, oliver.schramm97
Priority: NOR Keywords: junior-jobs
Version First Reported In: 6.5.4   
Target Milestone: ---   
Platform: FreeBSD Ports   
OS: FreeBSD   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Augusto Fornitani 2025-12-14 15:32:15 UTC
SUMMARY

When searching a package name, and Discover not finding it, a text like this appears:

```
"keepassxc" may be available on the web. Software acquired from the web has not been reviewed by your distributor for functionality or stability. Use with caution.
```

Underneath the text, there's a button: `Search the Web for "keepassxc"`.
Clicking it opens a search in DuckDuckGo, as follows: `https://duckduckgo.com/?q=Linux%20keepass&t=kde&ia=web`

As we can see, it implies Linux is in use, while FreeBSD is my current system.

STEPS TO REPRODUCE
1. Open Discover in FreeBSD
2. Search any term
3. Click "Search the Web" button.

OBSERVED RESULT

The Web search in DuckDuckGo defaults to "Linux" instead of the actual system.

EXPECTED RESULT

Dynamically get the current system, instead of using hard-coded values.

SOFTWARE/OS VERSIONS
user@freebsd ~> kinfo
Operating System: FreeBSD 15.0
KDE Plasma Version: 6.5.4
KDE Frameworks Version: 6.20.0
Qt Version: 6.9.3
Kernel Version: 15.0-STABLE (64-bit)
Graphics Platform: Wayland
Memory: 15.9 GiB of usable RAM
Graphics Processor: AMD Radeon RX 580 Series


ADDITIONAL INFORMATION

Opening this very minor issue as a bug, as it might be happening elsewhere (e.g. right above this section in the bug report template, "SOFTWARE/OS VERSIONS" only suggests Windows/macOS/Linux, too).
Having such values dynamically populated might also help/interfere with localization.
Comment 1 White_Lucifer 2025-12-23 19:22:59 UTC
I want to take this issue and am submitting you my merge request shortly