fix(repo): sources and tests read files from the final directories

The include_str! and test paths of komorebic (Linux and macOS modules and tests),
komorebi-bar (macOS), komorebi-linux, komorebi-macos, komorebic-core, komorebi-config and
komorebi-bar-core named the old trees (komorebi-for-kde/docs, komorebi-for-mac/docs, the
schema.json files at the roots of the trees, komorebic/fixtures of the macOS tree). They
now read docs/linux, docs/macos, schemas/{windows,linux,macos} and the byte-identical
komorebic/fixtures at the root; the macOS pan tests point at the root fixtures, and
komorebi-linux's config_parity test takes the example config from docs/linux. Comments
that named the old paths were updated with them.

Not touched: markdown docs, justfiles, scripts, tools and nix files that name the old
paths (next revisions of the stack).

Verified: Windows clippy --locked --all-targets -D warnings (default members) passes; on
Linux cargo test -p komorebi -p komorebic -p komorebi-client -p komorebi-linux -p
komorebi-hotkeys -p komorebi-config -p komorebi-bar-core -p komorebic-core -p
komorebi-protocol (one test thread) passes, 96 test binaries ok after config_parity was
fixed; macOS cargo check --target aarch64-apple-darwin (fake CC) passes. Nix not run.
This commit is contained in:
LGUG2Z committed 2026-11-05 15:03:27 -08:00
1 parent f661493793
commit fa4752a514
17 files changed
+47 -51

No files matched your search

+2 -3
View File
@@ -577,8 +577,7 @@ pub fn main() -> eyre::Result<()> {
std::fs::create_dir_all(&*komorebi_client::DATA_DIR)?;
let komorebi_json =
include_str!("../../../komorebi-for-kde/docs/komorebi.example.json")
.to_string();
include_str!("../../../docs/linux/komorebi.example.json").to_string();
let komorebi_path = HOME_DIR.join("komorebi.json");
let applications_path = HOME_DIR.join("applications.json");
let skhdrc_path = HOME_DIR.join("skhdrc");
@@ -590,7 +589,7 @@ pub fn main() -> eyre::Result<()> {
let applications_json = include_str!("applications.json");
write_file_with_prompt(&applications_path, applications_json, &mut written_files)?;
let skhdrc = include_str!("../../../komorebi-for-kde/docs/skhdrc.sample");
let skhdrc = include_str!("../../../docs/linux/skhdrc.sample");
write_file_with_prompt(&skhdrc_path, skhdrc, &mut written_files)?;
if written_files.is_empty() {
println!("\nNo files were written.")