diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-15 23:57:44 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-16 00:01:25 +0900 |
| commit | 6e7ddb2d2ec6b163dc2c178bc4d73b5943f51206 (patch) | |
| tree | 37ffe1564782377c1983909362ed6109c3f06b28 /dbus/proxy.go | |
| parent | bac4e67867faa7d8274b684575140a65827d3a4c (diff) | |
helper: eliminate commandContext replacement
This is done more cleanly by modifying Args in cmdF.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'dbus/proxy.go')
| -rw-r--r-- | dbus/proxy.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/dbus/proxy.go b/dbus/proxy.go index 5e92e341..e7785fd8 100644 --- a/dbus/proxy.go +++ b/dbus/proxy.go @@ -5,6 +5,7 @@ import ( "errors" "fmt" "io" + "os/exec" "sync" "git.gensokyo.uk/security/fortify/helper" @@ -26,6 +27,7 @@ type Proxy struct { name string session [2]string system [2]string + CmdF func(cmd *exec.Cmd) sysP bool seal io.WriterTo |
