docs: explain how to put `marktext` on PATH on every platform by Jocs · Pull Request #5459 · marktext/marktext · GitHub
Skip to content

docs: explain how to put marktext on PATH on every platform - #5459

Merged
Jocs merged 1 commit into
developfrom
docs/cli-launcher-guidance-5119
Sep 19, 2026
Merged

Jocs merged 1 commit into
developfrom
docs/cli-launcher-guidance-5119

Conversation

@Jocs

@Jocs Jocs commented Sep 19, 2026

Copy link
Copy Markdown
Member

Closes #5119

Problem

CLI.md documents the marktext command line but only shows how to reach the binary on
macOS. Windows users are left to invent their own shim, and the obvious one — a symlink, a
hard link, or a copy of marktext.exe dropped into a directory already on PATH — aborts
before any MarkText code runs:

[0814/154901.940:ERROR:base\i18n\icu_util.cc:232] Invalid file descriptor to ICU data received.

Chromium resolves icudtl.dat and the other bundled resources relative to the executable path
it was launched from, and on Windows that is the link's own path, not the target's. The
directory the link lives in has no icudtl.dat, so startup fails a CHECK and the process
dies with STATUS_BREAKPOINT (0x80000003).

Verification

Probed every launch route on a windows-latest runner against the published 0.19.1 x64
artifacts, using marktext --version (handled in src/main/cli/index.ts and printed long
before any window is created, so it is a GUI-free probe — if Chromium starts, the version
prints):

launch route result
marktext.exe from the extracted release zip prints MarkText: v0.19.1
marktext.exe from a default NSIS install prints MarkText: v0.19.1
scoop (extras/marktext) shim prints MarkText: v0.19.1
.cmd wrapper on PATH prints MarkText: v0.19.1
symlink to marktext.exe ICU error, exit 0x80000003
hard link to marktext.exe ICU error, exit 0x80000003
lone copy of marktext.exe ICU error, exit 0x80000003

So every supported install route is fine and only a hand-made link or copy breaks — which is
exactly what the documentation gap pushes people towards.

Change

Per-platform instructions for making marktext available in a shell, plus an explicit warning
about the link/copy trap on Windows that quotes the ICU error so it is searchable. The Linux
note points out the contrast: /usr/bin/marktext from the .deb/.rpm packages is a
symlink into /opt/marktext and works, because the kernel resolves it before the process
starts.

Documentation only — no code changes. The crash happens inside Chromium's startup, before any
MarkText JavaScript runs, so it cannot be caught or reported by the app itself.

🤖 Generated with Claude Code

CLI.md documented the `marktext` command but only showed how to reach it on
macOS, so Windows users are left to invent their own shim. The obvious one --
a symlink, hard link or copy of `marktext.exe` in a PATH directory -- dies
before MarkText starts, because Chromium resolves `icudtl.dat` next to the
executable path it was launched from and Windows reports the link's own path.
All the user sees is Chromium's `Invalid file descriptor to ICU data received.`

Document the working route for each platform and name that failure mode
explicitly, so the error is searchable.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Jocs Jocs mentioned this pull request Sep 19, 2026
1 task done
@github-actions

Copy link
Copy Markdown
Contributor

Website preview ready: https://pr-5459-marktext-website.ransixi.workers.dev

Built from 477d22476cef7a4cc0846f655e38d8e61ce46c2f · Worker: marktext-website · Version: d0ec5765-86d3-4ef4-a366-8a5ab08bd81a · Alias: pr-5459

@github-actions

Copy link
Copy Markdown
Contributor

Build artifacts for PR #5459:

Run: https://github.com/marktext/marktext/actions/runs/35447926589

Artifact Size Link
marktext-linux 638.3 MB Download
marktext-windows-arm64 279.4 MB Download
marktext-macos-arm64 287.5 MB Download
marktext-macos-x64 297.8 MB Download
marktext-windows-x64 287.6 MB Download

@Jocs
Jocs merged commit abbfef9 into develop Sep 19, 2026
12 checks passed
@Jocs
Jocs deleted the docs/cli-launcher-guidance-5119 branch September 19, 2026 14:31
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.

[Bug] cannot open file from command line

1 participant