I removed Adobe from my Ubuntu 22.04.3 LTS and, since then, xdg-open file.pdf
opens the file with libreoffice
rather than Document viewer. Purging libreoffice
completely solves the problem, however it persists if I re-install it. I could live like this, where I remove and re-install libreoffice, since I don't use it much in the first place, however I believe that there should be a fix for this. Is there a way to tell xdg-open
Please, open pdfs with this other app? I did do some googling but I couldn't find anything clear-cut that I could understand.
Edit: there's not tick to do when opening a pdf file, so I have no way to chose a default app from there
Thank you very much
Edit2: the suggested similar question here is somehow not applicable for me, I see none of the options listed for the GUI solution in my system and I don't fully understand the non-GUI solution. On the other hand, the suggested (comments) xdg-mime default org.gnome.Evince.desktop application/pdf
command works wonderfully!
xdg-mime default org.gnome.Evince.desktop application/pdf
? – Daniel T Jan 31 '24 at 22:15