Bug 503010 - Add a link to view an app in store website (e.g. flathub.org)
Summary: Add a link to view an app in store website (e.g. flathub.org)
Status: REPORTED
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (other bugs)
Version First Reported In: 6.3.4
Platform: openSUSE Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-04-19 11:46 UTC by John Veness
Modified: 2025-10-07 14:46 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Veness 2025-04-19 11:46:46 UTC
SUMMARY
I don't know if the API or metadata allows it, but I would find it useful when viewing a Flatpak from Flathub (and presumably other sources, but I only use Flathub) in Discover, to be able to click a link to open the relevant flathub.org page for that app. That way I can access things not directly accessible in Discover, such as the app's manifest, to see whether an app is packaged by the upstream project or by a third party, or be able to download screenshots, etc.

STEPS TO REPRODUCE
1. Open Discover
2. Browse to an app with a Flatpak available on Flathub, e.g. LibreOffice
3. Scroll down to External Links

OBSERVED RESULT
No clickable link to https://flathub.org/apps/org.libreoffice.LibreOffice

EXPECTED RESULT
Clickable link to https://flathub.org/apps/org.libreoffice.LibreOffice

SOFTWARE/OS VERSIONS
Operating System: openSUSE Tumbleweed 20250414
KDE Plasma Version: 6.3.4
KDE Frameworks Version: 6.12.0
Qt Version: 6.9.0
Kernel Version: 6.14.1-1-default (64-bit)
Graphics Platform: X11
Comment 1 john.liptrot 2025-10-06 15:32:58 UTC
Output of the command "appstreamcli search libreoffice --details" below. Was looking for a URL to flathub.org;

Identifier: org.libreoffice.LibreOffice [desktop-application]
Internal ID: system/flatpak/flatpak/org.libreoffice.LibreOffice/*
Name: LibreOffice
Summary: The LibreOffice productivity suite
Bundle: flatpak:app/org.libreoffice.LibreOffice/x86_64/stable
Homepage: http://www.libreoffice.org/discover/libreoffice/
Icon: org.libreoffice.LibreOffice.png
Developer: The Document Foundation
Description: 
  LibreOffice is a powerful office suite.  Its clean interface and feature-rich tools help you
  unleash your creativity and enhance your productivity.  LibreOffice includes several applications
  that make it the most powerful Free and Open Source office suite on the market: Writer (word
  processing), Calc (spreadsheets), Impress (presentations), Draw (vector graphics and flowcharts),
  Base (databases), and Math (formula editing).
  
  LibreOffice supports opening and saving into a wide variety of formats, so you can easily share documents
  with users of other popular office suites without worrying about compatibility.
Default Screenshot URL: 
  https://dl.flathub.org/media/org/libreoffice/LibreOffice/34c3131d84c11c0019465cbcc808061c/screenshots/image-1_orig.png
Licence: MPL-2.0
Categories: Office
Provided Items: ↓
  Media types: 
    - application/vnd.openofficeorg.extension
    - x-scheme-handler/vnd.libreoffice.cmis
    - x-scheme-handler/vnd.sun.star.webdav
    - x-scheme-handler/vnd.sun.star.webdavs
    - x-scheme-handler/vnd.libreoffice.command
    - x-scheme-handler/ms-word
    - x-scheme-handler/ms-powerpoint
    - x-scheme-handler/ms-excel
    - x-scheme-handler/ms-visio
    - x-scheme-handler/ms-access

Also tried the command "flatpak search --columns=all  libreoffice". No mention of a URL to flathub.org here either.

Operating System: KDE Linux 2025-09-20
KDE Plasma Version: 6.5.80
KDE Frameworks Version: 6.19.0
Qt Version: 6.9.2
Kernel Version: 6.16.7-arch1-1 (64-bit)
Graphics Platform: Wayland
Processors: 2 × Intel® Pentium® 3805U @ 1.90GHz
Memory: 4 GiB of RAM (3.7 GiB usable)
Graphics Processor: Intel® HD Graphics
Manufacturer: LENOVO
Product Name: 80EW
System Version: Lenovo B50-80
Comment 2 John Veness 2025-10-06 15:50:38 UTC
Yeah, I worried that might be the case. Obviously Discover knows which Flatpak repo an app is in (as it is shown in the top-right, next to the Install button), and presumably must know the app id, so could autogenerate a flathub.org/<language>/apps/<appid> URL, but that would break if flathub rearranged their website, wouldn't work for other Flatpak repos, and presumably some Flatpak repos might not even have corresponding store website frontends. So it would be nicer if this was something that was passed through in metadata, but I guess that would need consultation with flatpak devs.
Comment 3 john.liptrot 2025-10-07 14:46:03 UTC
(In reply to John Veness from comment #2)
> Yeah, I worried that might be the case. Obviously Discover knows which
> Flatpak repo an app is in (as it is shown in the top-right, next to the
> Install button), and presumably must know the app id, so could autogenerate
> a flathub.org/<language>/apps/<appid> URL, but that would break if flathub
> rearranged their website, wouldn't work for other Flatpak repos, and
> presumably some Flatpak repos might not even have corresponding store
> website frontends. So it would be nicer if this was something that was
> passed through in metadata, but I guess that would need consultation with
> flatpak devs.

It's a shame really, because I don't actually think this is too bad of an idea - I just can't realistically see how it would be implemented. Navigating to Firefox in Discover and clicking the 'share' button allows you to copy this >>> appstream:org.mozilla.firefox <<< to your clipboard. This *could* be used to implement a clickable link to flathub's search page >>> https://flathub.org/en/apps/search?q=org.mozilla.firefox

But the problem with this, as you pointed out in comment #2, is that if flathub change their website layout, the links won't work anymore.

Perhaps you could reconsider your wishlist request to something along the lines of;

"Add a link to the website of the hosting platform used". So all apps you see in discover via flathub have a link to 'https://flathub.org/', all snap apps have a link to 'https://snapcraft.io/'.

Although it doesn't quite achieve what you're asking for, it is much easier to implement and is probably more likely to be considered by the developers.