From 4b03d3e21222d63d0eb4e122f3c609046aef81f7 Mon Sep 17 00:00:00 2001 From: Mason Rhodes Date: Tue, 13 Oct 2026 16:57:06 +0000 Subject: [PATCH] packaging: ship the config schema under /usr/share/lmtt lmtt-config refreshes ~/.config/lmtt/config-schema.json on every run, so a settings UI that renders the same schema (dials' Appearance page) had nothing to read on a box that never ran the TUI. Install the bundled asset as /usr/share/lmtt/config-schema.json on both distros; the user copy still wins when present. --- packaging/PKGBUILD | 2 ++ packaging/lmtt.spec | 2 ++ 2 files changed, 4 insertions(+) diff --git a/packaging/PKGBUILD b/packaging/PKGBUILD index 2552666..c854954 100644 --- a/packaging/PKGBUILD +++ b/packaging/PKGBUILD @@ -59,4 +59,6 @@ package() { install -Dm644 README.md "$pkgdir/usr/share/doc/$pkgname/README.md" install -Dm644 dist/tmpfiles.d/lmtt.conf "$pkgdir/usr/lib/tmpfiles.d/lmtt.conf" install -Dm644 dist/lmtt-config.desktop "$pkgdir/usr/share/applications/lmtt-config.desktop" + # The settings schema lmtt-config renders, for other settings UIs (dials). + install -Dm644 lmtt-config-tui/assets/config-schema.json "$pkgdir/usr/share/lmtt/config-schema.json" } diff --git a/packaging/lmtt.spec b/packaging/lmtt.spec index 1f6b1f1..448a301 100644 --- a/packaging/lmtt.spec +++ b/packaging/lmtt.spec @@ -80,6 +80,8 @@ install -Dpm0644 examples/modules/*.toml -t %{buildroot}%{_datadir}/lmtt/example install -Dpm0755 examples/scripts/*.sh -t %{buildroot}%{_datadir}/lmtt/examples/scripts install -Dpm0644 dist/tmpfiles.d/lmtt.conf %{buildroot}%{_tmpfilesdir}/lmtt.conf desktop-file-install --dir=%{buildroot}%{_datadir}/applications dist/lmtt-config.desktop +# The settings schema lmtt-config renders, for other settings UIs (dials). +install -Dpm644 lmtt-config-tui/assets/config-schema.json %{buildroot}%{_datadir}/lmtt/config-schema.json %if %{with check} %check