TIL

While it's pretty obvious that each OS has a way to determine which app is going to open a given file, I've never bothered to learn where this info is stored. Thanks to HackerNews I've stumbled upon xdgctl, which has great pointers on how the system works along with some good resources.

On completely unrelated news, I'm now stowing .config/mimeapps.list :)

Sources: