On Tue, Jun 02, 2020 at 05:07:18PM +0100, Laurence Tratt wrote: > At some point recently our mozilla-firefox port stopped automatically opening > downloaded files for me. pkg/README says: > > Due to unveil(2) limiting filesystem access, only the default MIME > handler registered for a given type can be chosen when opening a > downloaded file. For example, to use the mupdf package to read > PDFs, it must be registered as the default with XDG: > > $ xdg-mime default mupdf.desktop application/pdf > > And, indeed, I have had that set for some while and it used to work fine. > However, when I click on a PDF link in Firefox, it now brings up the > (not-very-useful because of unveil!) "launch application" window. > > I'm sure I'm missing out on something obvious, but I'm not sure what it might > be (and I know someone else who's equally baffled). In case it's relevant, > I'm using XFCE (so DBUS is running) on -current as of a couple of days ago, > with the firefox-76.0p0 package on amd64. If anyone has any pointers, I know > at least two of us who will welcome them!
I have some computers/profiles where downloading files/pdfs works, some where it doesnt, some where downloading files with a name end up with a wrong name under /tmp/mozilla_landry0/foo.part instead of ~/Downloads/rightname.rightext and i personally have no time/interest to debug this, which is code im *not* responsible for - and i still dont understand all its intricacies/implementation details. Never tried the xdg-mime knob either. So all that to say i think you should talk to jcs@ :) Landry