xdg_open_ng/uri_runner.pr

18 lines
553 B
Plaintext

<require-service <daemon uri_runner>>
<daemon uri_runner {
argv: ["/home/repo/syndicate/xdg_open_ng/src/uri_runner"]
dir: "/tmp"
protocol: text/syndicate
clearEnv: #f
}>
? <service-object <daemon uri_runner> ?cap> [
$cap <config { actions: [
["gemini://.*|file:///.*.gmi", ["/run/current-system/sw/bin/kristall" "\\1"]]
["http://.*|https://.*|.*html", ["/run/current-system/sw/bin/firefox" "\\1"]]
["tox:.*|uri:tox:.*", ["/run/current-system/sw/bin/qtox" "\\1"]]
[".*mkv", ["/run/current-system/sw/bin/mpv" "\\1"]]
] } >
]