diff --git a/home/linux/gui/base/xdg/mime.nix b/home/linux/gui/base/xdg/mime.nix index 5f325d56..6c5feae4 100644 --- a/home/linux/gui/base/xdg/mime.nix +++ b/home/linux/gui/base/xdg/mime.nix @@ -25,7 +25,7 @@ in { "application/json" = browser; - "application/pdf" = browser; + "application/pdf" = [ "org.mozilla.firefox.desktop" ]; "text/html" = browser; "text/xml" = browser; @@ -68,6 +68,12 @@ "inode/directory" = [ "yazi.desktop" ]; }; + # The portal app chooser used by sandboxed apps (e.g. Telegram) lists only these + # and the types a desktop entry declares, never the defaults above. + associations.added = { + "application/pdf" = [ "org.mozilla.firefox.desktop" ]; + }; + associations.removed = { # ...... };