1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-08-05 21:18:30 -04:00

sysupdate: pass custom command to daemon instead of fire and forget from

QML

related #2873

port 1.5

(cherry picked from commit 0ffec5011b)
This commit is contained in:
bbedward
2026-07-17 09:46:02 -04:00
committed by dms-ci[bot]
parent 7d6a7bae06
commit 8ba5e1a082
7 changed files with 34 additions and 52 deletions
@@ -112,7 +112,7 @@ func (b archHelperBackend) Upgrade(ctx context.Context, opts UpgradeOptions, onL
}
cmd := strings.Join(archHelperUpgradeArgv(b.id, opts.IncludeAUR, opts.Ignored), " ")
title := fmt.Sprintf("DMS — System Update (%s)", b.id)
return Run(ctx, wrapInTerminal(term, title, cmd), RunOptions{OnLine: onLine})
return Run(ctx, wrapInTerminal(term, title, cmd, opts.TerminalArgs), RunOptions{OnLine: onLine})
}
func archHelperUpgradeArgv(id string, includeAUR bool, ignored []string) []string {