dangerzone icon indicating copy to clipboard operation
dangerzone copied to clipboard

Linux: default PDF program not correctly detected

Open secretmango opened this issue 1 year ago • 1 comments

Fedora Kinoite 40

Plasma 6

I use Okular Flatpak as default PDF viewer, but it is not detected as such. Instead a lot of PDF programs are detected that are not default.

There is a portal that allows to grab the default PDF reader program. Could this be used?

secretmango avatar Sep 30 '24 20:09 secretmango

Hm, this echoes a suggestion by another user (https://github.com/freedomofpress/dangerzone/issues/899#issuecomment-2351790807). Right now, Dangerzone tries to list all the applications that can open PDFs, store the default one in the settings, and then use that to read the PDF. To the best of my knowledge, we cannot get a list of applications via XDG portals.

But I think we're just too invested in the current design. I guess what users want is - correct me if I'm wrong - to have Dangerzone use xdg-open <pdf>, fire up the app chooser via their DE's portal backend, and let it use the default PDF viewer. Would this be a better approach?

apyrgio avatar Oct 01 '24 07:10 apyrgio