aboutsummaryrefslogtreecommitdiffstats
path: root/src/app_session.c
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-19 15:25:28 +0200
committeruser <user@clank>2026-08-19 15:25:28 +0200
commit49ac13f70aa3a9224e90699fe68d8463909239db (patch)
tree303c3cee9492e23de6a1f0afc7b2feffeba5c6aa /src/app_session.c
parentslosh: the logo flies into place -- a particle engine, statelessly (diff)
downloadslosh-49ac13f70aa3a9224e90699fe68d8463909239db.tar.gz
slosh-49ac13f70aa3a9224e90699fe68d8463909239db.tar.xz
slosh-49ac13f70aa3a9224e90699fe68d8463909239db.zip
slosh: layout files are *.layout, not *.layout.kdl
The old name argued that the extension should say how to read the file. The argument lost to a collision: zellij speaks the same KDL syntax under that same extension with a different schema, and to anyone arriving from there .kdl said *whose* file it is -- naming the wrong owner is worse than not naming the parser. So a layout is x.layout, a project's is slosh.layout, the name says what the file is and --check says how it was read. (It is still KDL underneath; point your editor's highlighting at *.layout.) Nobody's checked-in workspace vanishes on upgrade: the project scan still finds slosh.layout.kdl, never writes it, and where both spellings exist the new one wins, because two files disagreeing needs one answer. The unparseable-file heuristic in --check learned the new suffix -- it matched '.layout.' with a trailing dot, which the new name no longer has. The webdemo overlay moves with it (demo.layout), rebuilt and boot-checked.
Diffstat (limited to 'src/app_session.c')
-rw-r--r--src/app_session.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/app_session.c b/src/app_session.c
index a62d4b3..0b228ce 100644
--- a/src/app_session.c
+++ b/src/app_session.c
@@ -228,7 +228,7 @@ bool app_apply_layout_text(app_t *a, const char *text, bool replace, char *err,
bool app_apply_layout_file(app_t *a, const char *path, bool replace, char *err,
size_t errcap) {
- /* Expanded here rather than left to a shell: `--layout "~/x.layout.kdl"` in
+ /* Expanded here rather than left to a shell: `--layout "~/x.layout"` in
* quotes, and every path arriving over the control socket, reach fopen with
* the tilde still on them. */
char pathbuf[1024], dirbuf[1024];