2.home-manager/tests/modules/programs/firefox/profiles/handlers/expected-handlers.json
André Kugland a913ae61bf firefox: add handlers.json configuration
Adds support for configuring Firefox's handlers.json file to
manage MIME type and URL scheme handlers declaratively (at
`programs.firefox.profiles.<profile>.handlers`). Handlers control
how Firefox opens files and protocols (e.g., PDF viewers,
`mailto:` handlers).
2026-02-20 16:08:03 -06:00

43 lines
756 B
JSON

{
"defaultHandlersVersion": {},
"isDownloadsImprovementsAlreadyMigrated": false,
"mimeTypes": {
"application/pdf": {
"action": 2,
"ask": false,
"extensions": [
"pdf"
],
"handlers": [
{
"name": "Hello App",
"path": "@hello@/bin/hello"
}
]
},
"text/html": {
"action": 4,
"ask": true,
"extensions": [
"html",
"htm"
]
}
},
"schemes": {
"http": {
"action": 3,
"ask": true
},
"mailto": {
"action": 2,
"ask": false,
"handlers": [
{
"name": "Gmail",
"uriTemplate": "https://mail.google.com/mail/?extsrc=mailto&url=%s"
}
]
}
}
}