#16137

mimetype pdf isn't checked/ set when browser is set, allowing other browsers to set the default

Openthejoshuamopened 20h ago

System details

Omarchy 4.0.4 - no pdf viewer installed

What's wrong?

Prelude

  1. Using zen browser (omarchy default browser zen) without a PDF viewer installed; pdfs opened with Zen since it's the only application that supports them

  2. Then I installed librewolf via flatpak for a test profile

  3. Open a pdf through Files (nautilus) or xdg-open ($ open my-doc.pdf)

  4. It opens in librewolf (flatpak); opening the browser if it wasn't open already

Expected behaviour

  1. When zen is installed through omarchy default browser, it should check if the mimetype is setup in ~/.config/mimeapps.list or equivalent location (under [Default Applications], named application/x-pdf ). a. If it is already set, check if it's another browser omarchy supports and replace it if so b. If it isn't set, add application/x-pdf=zen.desktop
  2. Check this periodically such as when updating the browser
  3. When another application is installed, hopefully it detects you have a pdf set and won't replace it (investigate upstream flatpak and librewolf if behaviour continues.

Activity

0

No activity yet.