Compare commits
1 Commits
dbus
...
354ba05faa
| Author | SHA1 | Date | |
|---|---|---|---|
|
354ba05faa
|
@@ -10,10 +10,10 @@ type DbusProxy* = object
|
||||
socket*: string
|
||||
args: seq[string]
|
||||
|
||||
proc exec*(proxy: var DbusProxy) =
|
||||
proc exec*(proxy: DbusProxy): Process =
|
||||
# todo: start dbus proxy in bwrap
|
||||
# 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})
|
||||
|
||||
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("--log")
|
||||
proxy.exec()
|
||||
proxy.process = proxy.exec()
|
||||
|
||||
proxy
|
||||
Reference in New Issue
Block a user