diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-09-09 21:19:12 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-09-09 21:19:12 +0900 |
| commit | 44301cd979ea7b2a03e1dc535fb98cdb2e356580 (patch) | |
| tree | 5d7f7cb8b837be4cb464e5d244b7fbec97355c9c /internal/app/run.go | |
| parent | 20c0e66d8fa68dc113019da819f2c441d778dc60 (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.go | 5 |
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") } |
