Bug 507402 - Add support for flatpak+https://
Summary: Add support for flatpak+https://
Status: RESOLVED FIXED
Alias: None
Product: Discover
Classification: Applications
Component: Flatpak Backend (other bugs)
Version First Reported In: 6.4.2
Platform: Fedora RPMs Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-07-23 17:13 UTC by renner0
Modified: 2025-08-02 16:41 UTC (History)
6 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description renner0 2025-07-23 17:13:36 UTC
SUMMARY
This would be really nice for new users who are coming from windows and are used to hunting for applications on the internet. This feature would bridge that gap by opening flatpak URLs in discover.

STEPS TO REPRODUCE
1. open a URL (firefox flatpak) on flathub https://flathub.org/apps/io.github.DenysMb.Kontainer
2. click install

OBSERVED RESULT
nothing happens as discover doesn't seem to support flatpak+https

EXPECTED RESULT
the install button opens discover

Operating System: Aurora 42
KDE Plasma Version: 6.4.3
KDE Frameworks Version: 6.16.0
Qt Version: 6.9.1
Kernel Version: 6.14.11-300.fc42.x86_64 (64-bit)
Graphics Platform: Wayland
Processors: 24 × AMD Ryzen 9 7900X 12-Core Processor
Memory: 32 GiB of RAM (30.9 GiB usable)
Graphics Processor: AMD Radeon RX 6750 XT

ADDITIONAL INFORMATION
Comment 1 David Edmundson 2025-07-24 09:56:34 UTC
There is.

The steps worked for me.

Please check if you've manually modified your URL handling setup.
Comment 2 renner0 2025-07-24 22:33:13 UTC
(In reply to David Edmundson from comment #1)
> There is.
> 
> The steps worked for me.
> 
> Please check if you've manually modified your URL handling setup.

I haven't 100% figured out what the problem could be, but it works perfectly on kde linux, but not on Fedora Kinoite and KDE (fresh install).

KDE Linux ships the snap backend for discover and this MR seemingly adds the x-scheme-handler for the flatpak+https stuff to the snap desktop file, which isn't shipped on Fedora.
https://invent.kde.org/plasma/discover/-/merge_requests/1012/diffs?commit_id=3208c960aedf0fda29723bffb845e60681620b62

I did install the snap backend on Fedora and that did not change any behavior in discover.

This is fedora
```
rg -i -w 'x-scheme-handler.*discover|flatpak.https' /usr/share 2>/dev/null
/usr/share/applications/mimeinfo.cache
84:x-scheme-handler/appstream=org.kde.discover.urlhandler.desktop;

/usr/share/applications/kde-mimeapps.list
11:x-scheme-handler/appstream=org.kde.discover.urlhandler.desktop
```
Comment 3 Timothée Ravier 2025-08-01 09:44:20 UTC
On my Kinoite system:
```
$ grep Mime /usr/share/applications/org.kde.discover*
/usr/share/applications/org.kde.discover.desktop:MimeType=application/x-rpm;application/vnd.flatpak;application/vnd.flatpak.repo;application/vnd.flatpak.ref;
/usr/share/applications/org.kde.discover-flatpak.desktop:MimeType=application/vnd.flatpak.ref;application/vnd.flatpak;application/vnd.flatpak.repo
/usr/share/applications/org.kde.discover.urlhandler.desktop:MimeType=x-scheme-handler/appstream;
```
Comment 4 Bug Janitor Service 2025-08-01 09:57:03 UTC
A possibly relevant merge request was started @ https://invent.kde.org/plasma/discover/-/merge_requests/1131
Comment 5 Timothée Ravier 2025-08-02 15:05:38 UTC
Git commit 00862dd853a72814ebc11573db840731ee26dda8 by Timothée Ravier.
Committed on 01/08/2025 at 13:56.
Pushed by apol into branch 'master'.

discover: Move flatpak+https support to flatpak desktop entry

- Remove it from the snap desktop entry as it is unexpected.
- Merge the desktop entry with the one from the Flatpak backend.
- Only install it if we have Flatpak support
Fixes: https://invent.kde.org/plasma/discover/-/merge_requests/750

M  +10   -1    discover/CMakeLists.txt
M  +0    -1    libdiscover/backends/FlatpakBackend/CMakeLists.txt
D  +0    -68   libdiscover/backends/FlatpakBackend/org.kde.discover-flatpak.desktop

https://invent.kde.org/plasma/discover/-/commit/00862dd853a72814ebc11573db840731ee26dda8