Skip to content

fix(menubar): launch the Windows tray exe by its real binary name - #1225

Closed
iamtoruk wants to merge 1 commit into
mainfrom
fix/windows-menubar-exe-name
Closed

fix(menubar): launch the Windows tray exe by its real binary name#1225
iamtoruk wants to merge 1 commit into
mainfrom
fix/windows-menubar-exe-name

Conversation

@iamtoruk

@iamtoruk iamtoruk commented Sep 1, 2026

Copy link
Copy Markdown
Member

First run of codeburn menubar on a real Windows 11 install: the MSI installs fine, but the launch step fails with spawn ENOENT.

Cause: parseInstalledWindowsMenubar builds the exe path as InstallLocation + 'CodeBurn Menubar.exe' (the product name), while Tauri names the binary after the crate: codeburn-menubar.exe (windows/src-tauri/Cargo.toml). Verified in the guest: C:\Program Files\CodeBurn Menubar\codeburn-menubar.exe is the only exe the MSI ships, and launching it directly works.

Fix: join with a WINDOWS_EXE_NAME constant instead. The DisplayIcon fallback path is unchanged. Test fixtures updated to the real name.

The MSI installs codeburn-menubar.exe (Tauri names the binary after the
crate), but the CLI joined InstallLocation with the product name and tried
to spawn 'CodeBurn Menubar.exe', so 'codeburn menubar' installed the app
and then failed to launch it (spawn ENOENT). Found on the first run on a
real Windows 11 machine.
@iamtoruk

iamtoruk commented Sep 3, 2026

Copy link
Copy Markdown
Member Author

Superseded by #1228, which landed the same fix. The tray binary is now named by its own constant rather than derived from the product name (WINDOWS_BINARY_NAME in src/menubar-installer.ts), so codeburn menubar finds codeburn-menubar.exe on Windows. Closing as already fixed on main.

@iamtoruk iamtoruk closed this Sep 3, 2026
@iamtoruk
iamtoruk deleted the fix/windows-menubar-exe-name branch September 3, 2026 12:25
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