aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/run.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/app/run.go')
-rw-r--r--internal/app/run.go3
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())