Skip to main content
Topic: how do I change xdg-open default application (Read 3508 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

how do I change xdg-open default application

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.

Re: how do I change xdg-open default application

Reply #1
Hi, I use qpdfview, so I solved this by manually adding:
Code: [Select]
application/pdf=qpdfview.desktop
to .local/share/applications/mimeapps.list.

Re: how do I change xdg-open default application

Reply #2
The correct name for okular is "okularApplication_pdf.desktop":
Code: [Select]
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.

Re: how do I change xdg-open default application

Reply #3
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.