diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-29 12:00:06 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-29 12:00:06 +0200 |
| commit | 2eed7f52799a655b62f4a64dcc1e620a119dc13d (patch) | |
| tree | e585916b5d1435ec58377f8a6a7d46cdd1a4b362 | |
| parent | 2d7b18d52ee7e7f1aac132180b7eb3b951735668 (diff) | |
| download | quickshell-2eed7f52799a655b62f4a64dcc1e620a119dc13d.tar.gz quickshell-2eed7f52799a655b62f4a64dcc1e620a119dc13d.zip | |
refactor(appearance): let install.sh fill its own steps tab
install.sh now hands its output to the steps window on every run, so the
Theme tab stops piping it through udt-steps, which would write the tab a
second time.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
| -rw-r--r-- | appearance/Udt.qml | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/appearance/Udt.qml b/appearance/Udt.qml index d4747aa..cf97ba5 100644 --- a/appearance/Udt.qml +++ b/appearance/Udt.qml @@ -128,16 +128,15 @@ Singleton { } // Switching writes the scheme line and regenerates every config; - // install.sh also reloads what is running. Its whole output becomes the - // `install` tab of the steps window, through udt-steps, so the root steps - // it prints can be copied from there. + // install.sh also reloads what is running, and hands its whole output to + // the steps window's `install` tab itself. function apply(scheme) { if (applying || scheme === current) return; applying = true; applyProc.scheme = scheme; - applyProc.command = ["bash", "-o", "pipefail", "-c", + applyProc.command = ["sh", "-c", `sed -i 's|^scheme *=.*|scheme = ${scheme}|' ${JSON.stringify(root.selector)} && ` + - `${JSON.stringify(root.repo)}/install.sh 2>&1 | ${JSON.stringify(root.repo)}/bin/udt-steps install`]; + `${JSON.stringify(root.repo)}/install.sh >/dev/null 2>&1`]; applyProc.running = true; } |
