Compare commits

1 Commits

Author SHA1 Message Date
354ba05faa add dbus and dri 2021-08-14 13:48:55 +02:00

View File

@@ -10,10 +10,10 @@ type DbusProxy* = object
socket*: string socket*: string
args: seq[string] args: seq[string]
proc exec*(proxy: var DbusProxy) = proc exec*(proxy: DbusProxy): Process =
# todo: start dbus proxy in bwrap # todo: start dbus proxy in bwrap
# todo: pass arguments as fd # todo: pass arguments as fd
proxy.process = startProcess("xdg-dbus-proxy", args = proxy.args, startProcess("xdg-dbus-proxy", args = proxy.args,
options = {poEchoCmd, poParentStreams, poUsePath}) options = {poEchoCmd, poParentStreams, poUsePath})
proc startDBusProxy*(config: Config, hostname: string): DbusProxy = proc startDBusProxy*(config: Config, hostname: string): DbusProxy =
@@ -49,6 +49,6 @@ proc startDBusProxy*(config: Config, hostname: string): DbusProxy =
proxy.args.add("--filter") proxy.args.add("--filter")
proxy.args.add("--log") proxy.args.add("--log")
proxy.exec() proxy.process = proxy.exec()
proxy proxy