how do I change xdg-open default application
I have no DE so it should default to xdg settings. I can't find them. pdf files are opened with the GIMP which is throughly useless.
xdg-mime default okular.desktop application/pdf
that doesn't work.
Hi, I use qpdfview, so I solved this by manually adding:
application/pdf=qpdfview.desktop
to .local/share/applications/mimeapps.list.
The correct name for okular is "okularApplication_pdf.desktop":
xdg-mime default okularApplication_pdf.desktop application/pdf
This works for me in Arch Linux with sway.
If you don't use an desktop environment this could be your problem: https://wiki.archlinux.org/index.php/Xdg-utils#xdg-open
This should work, too: https://sakhnik.com/2018/12/10/xdg-open-pdf.html (AUR)
PS: I don't use Artix, I just found this post because I had the exact same problem, so it might be helpful to someone else. Difficult to get an account here, btw.
That was due to a series of spam attacks, perhaps we should relax the admission rules. Thanks for taking the time to help, that's the true opensource community spirit.