Context: Fedora/Bazzite/Kinoite/universal-blue/KDE/Flatpacks
When using KDE applications (like Okular or Gwenview) installed as Flatpaks in Fedora KDE Bazzite or other containerized Linux distributions, they may fail to open remote files (like those on Samba shares) when launched from Dolphin File Explorer.
Example error from Okular:
Could not open smb://... Reason: Unable to create KIO worker. Unknown protocol 'smb'.
Run this command in your terminal:
curl -s https://gist.githubusercontent.com/NonLogicalDev/f518e93aa19d3fc620bae15d388cba58/raw/068b82a4c7ca32ec7c8428b72dda196520f2e888/fixup-kde-flatpacks.py | python3 -
After running the script, highly suggest to reboot the system to ensure KDE picks those new entries as defaults, instead of orginal flatpack exported ones.
(Let me know in the comments if you know of a better way to force KDE to re-index .desktop
files)
- Identifies Flatpak KDE applications on your system
- Creates modified
.desktop
files that allow KDE apps to properly handle remote files - Places these modified files in
~/.local/share/applications/flatpak-overrides
- Does not modify your original Flatpak installations
This temporarily works around KDE Bug #477615 by removing the KDE
category from application desktop entries, which forces Dolphin to resolve remote URLs to local mount points before launching the applications.
- Okular (PDF viewer)
- Gwenview (Image viewer)
- Other KDE Flatpak applications that need to access remote files
For Fedora/uBlue variants: Combo of
neofetch
andrpm-ostree status
Bazzite 41 (FROM Fedora Kinoite)
● ostree-image-signed:docker://ghcr.io/ublue-os/bazzite-nvidia:stable
Digest: sha256:8d112f5c3cc01c4dd5b6d7ba80d4ff82d146594f5a81c089c0e7cc120be0a751
Version: 41.20241125 (2024-11-26T03:48:04Z)
Per @ninagrosse (thank you for validating):
Aurora-dx 41 (FROM Fedora Kinoite)
● ostree-image-signed:docker://ghcr.io/ublue-os/aurora-dx:stable
Digest: sha256:3b5b44627aed06d59fccbe2edd904a743a84601965ef23776b5dcd5b44ce832d
Version: 41.20241216.1 (2024-12-16T13:48:37Z)
Hi, thank you so much for this!! I can also confirm that works on Ublue Kinoite
One little thing (but not really a big deal), after running the script only okular (KDE) was set as the default. Gwenview however remained the non
(KDE)
version, but it sill created the new.desktop
file.EDIT: Also for some reason I can't access directly the smb share, so when I try to open the shared folder it fails. To see more than one image I have to do ctrl+a -> open with Gwenview (KDE)