xdg_open_ng/uri_runner.pr

21 lines
683 B
Plaintext
Raw Normal View History

; Expose a dataspace over a unix socket
let ?root_ds = dataspace
<require-service <relay-listener <unix "/run/user/1000/dataspace"> $gatekeeper>>
<bind "syndicate" #x"" $root_ds>
2022-02-26 23:39:22 +00:00
<require-service <daemon uri_runner>>
<daemon uri_runner {
argv: "uri_runner"
2022-02-26 23:39:22 +00:00
protocol: text/syndicate
}>
? <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"]]
[".*\\.avi|.*\\.mp4|.*mkv", ["/run/current-system/sw/bin/mpv" "\\1"]]
2022-02-26 23:39:22 +00:00
] } >
]