lk/system/xdg.md
2022-06-18 15:23:48 +02:00

22 lines
367 B
Markdown

---
title: "xdg"
tags: [ "Documentation", "Defaults", "System" ]
---
Tab is your friend.
What filetype is this file?
> xdg-mime query filetype *somefile.pdf*
`application/pdf`
Make `application/pdf` open with zathura as default:
> xdg-mime default org.pwmt.zathura.desktop application/pdf
Ask what happens with a filetype:
> xdg-mime query default audio/mp3