aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/run.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-09-09 21:19:12 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-09-09 21:19:12 +0900
commit44301cd979ea7b2a03e1dc535fb98cdb2e356580 (patch)
tree5d7f7cb8b837be4cb464e5d244b7fbec97355c9c /internal/app/run.go
parent20c0e66d8fa68dc113019da819f2c441d778dc60 (diff)
app/dbus: accept system bus config
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/run.go')
-rw-r--r--internal/app/run.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/internal/app/run.go b/internal/app/run.go
index 4e4e578d..0434bfe9 100644
--- a/internal/app/run.go
+++ b/internal/app/run.go
@@ -167,7 +167,10 @@ func (a *App) commandBuilderMachineCtl() (args []string) {
state.Fatal("Error reading executable path:", err)
} else {
if a.enablements.Has(state.EnableDBus) {
- innerCommand.WriteString(dbusSessionBusAddress + "=" + "'" + dbusAddress + "' ")
+ innerCommand.WriteString(dbusSessionBusAddress + "=" + "'" + dbusAddress[0] + "' ")
+ if dbusSystem {
+ innerCommand.WriteString(dbusSystemBusAddress + "=" + "'" + dbusAddress[1] + "' ")
+ }
}
innerCommand.WriteString("exec " + executable + " -V")
}