diff options
| author | Danilo M. <danix@danix.xyz> | 2026-09-29 10:42:29 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-09-29 10:42:29 +0200 |
| commit | 4645998b64815d15aef6efe00dcbdfc4a045359e (patch) | |
| tree | 89665a54e8afcfc63c6ec4749c041d440432eaa6 /AGENTS.md | |
| parent | dab41433688ff2247020d7a6fe12ac2140a75fb5 (diff) | |
| download | unified-desktop-theme-4645998b64815d15aef6efe00dcbdfc4a045359e.tar.gz unified-desktop-theme-4645998b64815d15aef6efe00dcbdfc4a045359e.zip | |
feat(bin): udt-machine-name writes PRETTY_HOSTNAME to /etc/machine-info
The GRUB theme titles its panel with the machine's pretty name, and on
Slackware nothing writes /etc/machine-info: hostnamectl is systemd's. This
sets the one key, keeping any others, and with no argument prints it.
The value is double-quoted with only \ and " escaped, the escapes systemd's
reader and the GRUB build's shlex agree on; control characters are refused.
It needs root and is never run by install.sh, which only suggests it in the
GRUB output while no name is set. tests/machine-name.sh checks the quoting
round-trip against shlex.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'AGENTS.md')
| -rw-r--r-- | AGENTS.md | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -27,6 +27,9 @@ one symlink. A real `~/.config/hypr` directory is left alone with a warning. `install.sh` runs its `build` as the user, then prints the root copy. A copy, not a link, because GRUB reads `/boot` before `/home` is mounted; it needs rerunning after a scheme or wallpaper change. +Its panel title is `PRETTY_HOSTNAME` from `/etc/machine-info`, which +`bin/udt-machine-name` writes (root, run by the user; there is no +hostnamectl without systemd). It rewrites that one key and keeps the rest. Live files that mix theme keys with anything else are merged, never replaced: `install.sh`'s `ini_merge` writes every key in `templates/qt-gtk/qt5ct.conf`, |
