# mimeapps The settings window's **Default apps** page: the default application per file type, from `$XDG_CONFIG_HOME/mimeapps.list` (the file `xdg-mime` and `xdg-open` read). - **Roles**: Browser, Mail, Text, PDF, Image, Video, Audio, Files, Archive. Each sets its whole group of types (`ROLES` in `MimeApps.js`) at once and shows the app most of them point at, or how many apps when they disagree. - **Explicit**: every `[Default Applications]` entry, with Change and Remove. An entry whose app is not installed shows its id in red. - **Add**: search any type an installed app declares; it is written once an app is picked. The picker lists the apps whose `.desktop` declares the type (one `grep` over the XDG applications directories, since Quickshell's `DesktopEntry` has no `mimeTypes`), or every app with "Show all apps". Edits are staged in a draft; Save in the header writes them, Discard drops them, as on the other settings pages. Only `[Default Applications]` is edited; `[Added Associations]`, comments and other sections are left as they are. Not handled: system-wide and desktop-specific `mimeapps.list` files. The file is written directly rather than through `xdg-mime default`, which cannot remove an entry. `DesktopEntry.id` has no `.desktop` suffix while mimeapps.list ids do, so lookups strip it. Test: `node desktop/modules/mimeapps/test_mimeapps.js`.