Bug 479616

Summary: [Flatpak] Okular can't find remote files when double clicked inside Dolphin
Product: [Applications] okular Reporter: cberlinger <cberlinger>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version: 23.08.4   
Target Milestone: ---   
Platform: Flatpak   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description cberlinger 2024-01-10 17:44:43 UTC
SUMMARY
Okular, when running via the Flathub flatpak, is unable to open files when they are on a remote share if they are double click on inside the Dolphin file manager. Related to Bug 477615, not sure whether this is an Okular, flatpak or Dolphin problem. Gwenview's Flathub flatpak also has this problem. 

STEPS TO REPRODUCE
1. Install Okular from Flathub or Fedora Flatpaks
2. Open Dolphin, connect to SMB or Webdav share
3. Double Click on a remote PDF or image 
4. Get error box.

OBSERVED RESULT
Gwenview and Okular are unable to open the specified file associations when they are on a remote server provided by Dolphin. An error boxes appears, saying "unknown protocol smb/http" 

Konsole output for SMB Connection.
Cannot initialize model with data QJsonObject(). missing: QJsonValue(string, “urls”)
QString::arg: 2 argument(s) missing in org.kde.okular
kf.kio.widgets: Failed to check which JobView API is supported “org.freedesktop.DBus.Error.ServiceUnknown”
kf.kio.core: couldn’t create worker: “Unknown protocol ‘smb’.”
kf.kio.workers.file: readData() returned -1

Konsole output for WEBDAV Connection.
QString::arg: 2 argument(s) missing in org.kde.okular
kf.kio.widgets: Failed to check which JobView API is supported “org.freedesktop.DBus.Error.ServiceUnknown”
kf.kio.workers.http: Can’t communicate with kded_kcookiejar!
kf.kio.core: Can’t communicate with kiod_kpasswdserver (for checkAuthInfo)!
kf.kio.core: Can’t communicate with kiod_kpasswdserver (for queryAuthInfo)!
kf.kio.workers.file: readData() returned -1

EXPECTED RESULT
File should open normally regardless of location.

SOFTWARE/OS VERSIONS
Operating System: Fedora Linux 39
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Kernel Version: 6.5.12-300.fc39.x86_64 (64-bit)
Graphics Platform: Wayland
Graphics Processor: AMD Radeon RX 480 Graphics
Dolphin Version: 23.08.3

ADDITIONAL INFORMATION