Skip to content

test(install): assert the installed launcher Exec target actually exists#6

Merged
Antawari merged 1 commit into
mainfrom
catrina/2026-07-02/install-path-param
Jul 2, 2026
Merged

test(install): assert the installed launcher Exec target actually exists#6
Antawari merged 1 commit into
mainfrom
catrina/2026-07-02/install-path-param

Conversation

@Antawari

@Antawari Antawari commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

CONTRACT

After install.sh, clicking 'Retro Writer' in the app menu launches the app for this user.

WORLD

The hardcoded-home portability fix already shipped: the source .desktop Exec is path-free and install.sh rewrites the installed copy to $HOME/.local/bin/blog. test_desktop_entry.py pins the Exec string.

FAILURE (the remaining gap)

Nothing verified the launcher target exists — the precise reason clicking 'Retro Writer' would silently fail on a machine whose home is not the author's.

FIX

One regression test: run install.sh under a throwaway HOME, then assert the installed entry's Exec resolves to a real, clickable file (the blog symlink install.sh just created) and never leaks another user's home. Reintroducing the original bug (hardcode the source Exec + drop the sed rewrite) turns it RED; against current main it is GREEN.

Local: install suite 3 passed (the new guard + the two existing install tests). CI (run-tests.sh: shellcheck + coverage) is the gate.

Supersedes the DO-NOT-MERGE finding PR #5. Close #5 as superseded on merge.

🤖 Generated with Claude Code

The hardcoded-home portability fix already shipped (Exec is path-free in the
source and install.sh rewrites the installed copy to $HOME/.local/bin/blog),
and test_desktop_entry.py pins the Exec string. But nothing verified the
launcher TARGET exists -- the precise reason clicking 'Retro Writer' would
silently fail on a machine whose home is not the author's.

Add one regression test: run install.sh under a throwaway HOME, then assert the
installed entry's Exec resolves to a real, clickable file (the blog symlink
install.sh just created) and never leaks another user's home. Reintroducing the
original bug turns it RED; against current main it is GREEN.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@Antawari Antawari merged commit aba13ba into main Jul 2, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant