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).
43 lines
756 B
JSON
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"
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|