From 3784440dbd1a523f89b5263b633ab2bcf74b1a2e Mon Sep 17 00:00:00 2001 From: Malin Freeborn Date: Fri, 19 Aug 2022 13:27:27 +0200 Subject: [PATCH] update defaults --- system/default_programs.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/system/default_programs.md b/system/default_programs.md index 8aa3a9c..d6a2d8d 100644 --- a/system/default_programs.md +++ b/system/default_programs.md @@ -17,13 +17,21 @@ Same with pdf: > xdg-mime query default application/pdf +Ask what file-type `book.pdf` uses. + +> xdg-mime query filetype *book.pdf* + ## Set Set the mime type of mp4 videos to mpv. > xdg-mime default mpv.desktop video/mp4 -### Alternative: File +You'll need to use the tab key a lot here, and remember many items start with `org`. -Look in `~/.config/mimeappps.list` to check and set. +You can use an asterisk for everything in a category. + +> xdg-mime default org.gnome.font-viewer.desktop font/\* + +This often won't work as expected, because some fonts will have the type `application` rather than `font`.