<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>513366</bug_id>
          
          <creation_ts>2025-12-14 15:32:15 +0000</creation_ts>
          <short_desc>Hard-coded OS name string in Discover</short_desc>
          <delta_ts>2025-12-31 15:31:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>Discover</product>
          <component>discover</component>
          <version>6.5.4</version>
          <rep_platform>FreeBSD Ports</rep_platform>
          <op_sys>FreeBSD</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>junior-jobs</keywords>
          <priority>NOR</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Augusto Fornitani">augusto.fornitani</reporter>
          <assigned_to name="Plasma Bugs List">plasma-bugs-null</assigned_to>
          <cc>aleixpol</cc>
    
    <cc>ananddointern1234</cc>
    
    <cc>kde</cc>
    
    <cc>nate</cc>
    
    <cc>oliver.schramm97</cc>
          
          <cf_commitlink>https://invent.kde.org/plasma/discover/-/commit/e3b109735df53e6c4ca196cbd292c0f99bded258</cf_commitlink>
          <cf_versionfixedin>6.5.5</cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2476901</commentid>
    <comment_count>0</comment_count>
    <who name="Augusto Fornitani">augusto.fornitani</who>
    <bug_when>2025-12-14 15:32:15 +0000</bug_when>
    <thetext>SUMMARY

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

```
&quot;keepassxc&quot; 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&apos;s a button: `Search the Web for &quot;keepassxc&quot;`.
Clicking it opens a search in DuckDuckGo, as follows: `https://duckduckgo.com/?q=Linux%20keepass&amp;t=kde&amp;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 &quot;Search the Web&quot; button.

OBSERVED RESULT

The Web search in DuckDuckGo defaults to &quot;Linux&quot; instead of the actual system.

EXPECTED RESULT

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

SOFTWARE/OS VERSIONS
user@freebsd ~&gt; 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, &quot;SOFTWARE/OS VERSIONS&quot; only suggests Windows/macOS/Linux, too).
Having such values dynamically populated might also help/interfere with localization.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2479033</commentid>
    <comment_count>1</comment_count>
    <who name="White_Lucifer">ananddointern1234</who>
    <bug_when>2025-12-23 19:22:59 +0000</bug_when>
    <thetext>I want to take this issue and am submitting you my merge request shortly</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2480768</commentid>
    <comment_count>2</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2025-12-31 10:49:07 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/1225</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2480826</commentid>
    <comment_count>3</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-12-31 15:29:02 +0000</bug_when>
    <thetext>Git commit ba9e95005a2256d2b993b51645484191a2c6c76b by Nate Graham, on behalf of Jaimukund Bhan.
Committed on 31/12/2025 at 15:28.
Pushed by ngraham into branch &apos;master&apos;.

Fix hardcoded &quot;Linux&quot; in web search fallback

Previously, the &quot;Search the Web&quot; button hardcoded &quot;Linux&quot; into the
DuckDuckGo search query, which was inaccurate for users on FreeBSD.
This change uses Qt.platform.os to dynamically insert the operating
system name into the search query.
FIXED-IN: 6.5.5

M  +1    -1    discover/qml/ApplicationsListPage.qml

https://invent.kde.org/plasma/discover/-/commit/ba9e95005a2256d2b993b51645484191a2c6c76b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2480828</commentid>
    <comment_count>4</comment_count>
    <who name="Nate Graham">nate</who>
    <bug_when>2025-12-31 15:30:14 +0000</bug_when>
    <thetext>Git commit e3b109735df53e6c4ca196cbd292c0f99bded258 by Nate Graham.
Committed on 31/12/2025 at 15:30.
Pushed by ngraham into branch &apos;Plasma/6.5&apos;.

Fix hardcoded &quot;Linux&quot; in web search fallback

Previously, the &quot;Search the Web&quot; button hardcoded &quot;Linux&quot; into the
DuckDuckGo search query, which was inaccurate for users on FreeBSD.
This change uses Qt.platform.os to dynamically insert the operating
system name into the search query.
FIXED-IN: 6.5.5


(cherry picked from commit ba9e95005a2256d2b993b51645484191a2c6c76b)

e332eb67 Fix hardcoded &quot;Linux&quot; in web search fallback
5f6e7c67 Make the change compact

Co-authored-by: Jaimukund Bhan &lt;bhanjaimukund@gmail.com&gt;

M  +1    -1    discover/qml/ApplicationsListPage.qml

https://invent.kde.org/plasma/discover/-/commit/e3b109735df53e6c4ca196cbd292c0f99bded258</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>