2 Commits

Author SHA1 Message Date
repparw
4246683484 programs/t3code: respect dry runs and quote theme paths
A dry run wrote the theme files: the activation created the themes
directory and installed every theme even though DRY_RUN was set. Guard
the directory creation and report the theme instead of writing it, using
the same "Would ..." message as mkImpureConfigMerger.

A theme path containing a space failed to build, because the unquoted
interpolation split it into separate cp arguments. Escape the path so it
is passed as one argument.

The module test now runs the activation with DRY_RUN=1 against an empty
home and checks that nothing is written, and installs a theme whose file
name contains a space.
2026-11-17 16:16:22 -06:00
Ulises Britos
1b939f3e16 programs/t3code: add declarative environment themes
Allow JSON attribute sets or paths as theme sources. Copy them into the
T3 userdata directory as regular files, since its loader rejects symlinks.
Keep unmanaged themes intact and avoid rewriting unchanged files.
2026-11-17 16:16:22 -06:00