ioi-2023 / contestant-vm

Contestant virtual machine for online IOI (since 2020)
1 stars 2 forks source link

Set a default pdf viewer #81

Open baltitenger opened 1 year ago

baltitenger commented 1 year ago

Describe the bug Trying to open a pdf from firefox opens a popup to choose between document viewer and imagemagick.

Expected behavior It should just open the pdf.

Screenshots image

Please complete the following information:

radl97 commented 1 year ago

Thanks for catching this!

I guess what we would like is to set a default so that

$ xdg-mime query default application/pdf
org.gnome.Evince.desktop
radl97 commented 1 year ago

No, it's the same in the VM. Even xdg-open works without prompting.

baltitenger commented 1 year ago

I remember firefox doing its own thing instead of using xdg-mime... Not sure what needs to be set and where then.

radl97 commented 1 year ago

Yes, this is that. Even from file chooser (nautilus) it seems to work with a good default. Thanks for the info!

radl97 commented 1 year ago

I have investigated, and it is more of an annoyance than anything. I'll come ul with some way to tag issues like this that there are known workarounds, without apparent fixes.

radl97 commented 1 year ago

Also this is not specifically a bug

baltitenger commented 1 year ago

Yea, the template added it. Not sure if there was a way to stop it.

radl97 commented 1 year ago

Ah, I understand. Feel free to modify labels (if you have permission) or bypass the template entirely:

Don’t see your issue here? Open a blank issue.

radl97 commented 1 year ago

pdfjs.enabledCache.state seems the relevant option. (to put to user.js)