diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-09-09 03:16:54 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-09-09 03:16:54 +0900 |
| commit | 38ef2b4d0caf48a5f6bb9d472b76764cbf14d23d (patch) | |
| tree | b419ee1d5b700feb43dd061ba336c6fd7f0ccd59 /internal/app/run.go | |
| parent | 357cc4ce4d2888033a8163fe39861c8a88301da6 (diff) | |
app/dbus: manage dbus proxy and pass address to child
This commit adds code that starts and registers the D-Bus proxy, as well as cleanup code that tracks and closes the daemon once our child exits. A few more flags were added to pass D-Bus config to xdg-dbus-proxy.
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/run.go')
| -rw-r--r-- | internal/app/run.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/app/run.go b/internal/app/run.go index 46e0270d..4e4e578d 100644 --- a/internal/app/run.go +++ b/internal/app/run.go @@ -166,6 +166,9 @@ func (a *App) commandBuilderMachineCtl() (args []string) { if executable, err := os.Executable(); err != nil { state.Fatal("Error reading executable path:", err) } else { + if a.enablements.Has(state.EnableDBus) { + innerCommand.WriteString(dbusSessionBusAddress + "=" + "'" + dbusAddress + "' ") + } innerCommand.WriteString("exec " + executable + " -V") } args = append(args, innerCommand.String()) |
