Bug 462823

Summary: Can't set Windows-store version as default open-with for some arbitrary types
Product: [Applications] okular Reporter: Tom Bertalan <kde>
Component: generalAssignee: Okular developers <okular-devel>
Status: REPORTED ---    
Severity: minor    
Priority: NOR    
Version: 22.08.1   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tom Bertalan 2022-12-09 18:47:28 UTC
SUMMARY
To open a PNG with Okular on Windows, you need to either drag it in from Explorer, File > Open it, or use the .exe installer and set the resulting bin/okular.exe as an "open-with" in the usual way. If you install from the Microsoft store (which the site recommdends, I guess this is a UWP app then), the last option is not available.

I believe this issue might provide a way to fix this: https://github.com/microsoft/WindowsAppSDK/issues/27

STEPS TO REPRODUCE
1. Install Okular in in Windows in the recommend way, through the Microsoft Store.
2. Right click in Windows Explorer on a PNG file (or probably any other non-PDF image that Okular can in fact open).
3. Go to Open With > Choose Another App > More Apps. Okular is not in the list.
4. Optionally execute `Get-AppxPackage -name "KDEe.V.Okular"` in powershell to get the install location. Mine is `C:\Program Files\WindowsApps\KDEe.V.Okular_22.801.1132.0_x64__7vt06qxq7ptv8\`.
5. Observe the okular.exe executable in an elevated Powershell in e.g. `C:\Program Files\WindowsApps\KDEe.V.Okular_22.801.1132.0_x64__7vt06qxq7ptv8\bin\`
6. Try to set this path as an open-with option; not possible because this install location is some kind of chroot jail or mounted filesystem or whatever.


OBSERVED RESULT
Can't set okular.exe as an open-with with Windows UWP installation.


EXPECTED RESULT


SOFTWARE/OS VERSIONS
Windows: 22H2, Windows 10 Education

ADDITIONAL INFORMATION