- Set both PATH and Path environment variables for Windows compatibility - Add tilde (~) path expansion for user home directories - Implement actual path deduplication using Set instead of just filtering empty strings - Properly split and combine existing PATH with additional platform-specific paths Ensures spawned typst processes can find executables reliably across all platforms. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>