Artix Linux Forum

Artix Linux => Applications & Software => Topic started by: mrbrklyn on 08 October 2019, 19:09:59

Title: how do I change xdg-open default application
Post by: mrbrklyn on 08 October 2019, 19:09:59
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.
Title: Re: how do I change xdg-open default application
Post by: ABabul on 19 October 2019, 08:35:44
Hi, I use qpdfview, so I solved this by manually adding:
Code: [Select]
application/pdf=qpdfview.desktop
to .local/share/applications/mimeapps.list.
Title: Re: how do I change xdg-open default application
Post by: carl on 11 January 2020, 10:54:03
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.
Title: Re: how do I change xdg-open default application
Post by: nous on 11 January 2020, 22:49:48
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.