Compare commits
1 Commits
dbus
...
354ba05faa
| Author | SHA1 | Date | |
|---|---|---|---|
|
354ba05faa
|
@@ -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
|
||||||
Reference in New Issue
Block a user