Update to latest Syndicate API

This commit is contained in:
Emery Hemingway 2023-04-12 15:10:39 -05:00
parent 76b7b75211
commit 5150229ac6
2 changed files with 2 additions and 6 deletions

View File

@ -11,12 +11,8 @@ proc unixSocketPath: string =
if result == "":
result = getEnv("XDG_RUNTIME_DIR", "/run/user/1000") / "dataspace"
proc mintCap: SturdyRef =
var key: array[16, byte]
cast[SturdyRef](mint(key, "syndicate"))
bootDataspace("main") do (root: Ref; turn: var Turn):
connectUnix(turn, unixSocketPath(), mintCap()) do (turn: var Turn; ds: Ref):
connectUnix(turn, unixSocketPath(), mint()) do (turn: var Turn; ds: Ref):
var uris = commandLineParams().map do (param: string) -> string:
if fileExists param:
"file://" & absolutePath(param)

View File

@ -1,6 +1,6 @@
# Package
version = "20230301"
version = "20230412"
author = "Emery"
description = "A better xdg-open"
license = "Unlicense"