Skip to content

fix: converts wsl icon paths for windows toaster - #473

Merged
mikaelbr merged 1 commit into
masterfrom
fix/wsl-icon-path-354
Oct 9, 2026
Merged

mikaelbr merged 1 commit into
masterfrom
fix/wsl-icon-path-354

Conversation

@mikaelbr

@mikaelbr mikaelbr commented Oct 9, 2026 •

Copy link
Copy Markdown
Owner

Under WSL, WindowsToaster passed the icon path straight to SnoreToast as -p. A Linux path like /home/me/icon.png isn't a local Windows file, so SnoreToast showed only "SnoreToast / New Notification" with no title or message.

Changes (only under WSL, in mapToWin8):

  • /mnt/<letter>/... and file:///mnt/<letter>/... are converted to <LETTER>:\... in plain JS (no wslpath, no shell).
  • Paths that are already Windows paths (C:\..., file:///C:/...) are kept as before.
  • Anything else (Linux paths, relative paths, /mnt/cdrom/..., paths with .., URLs) drops the icon, so the text still shows.
  • Outside WSL nothing changes.

Also adds a short README note in the WSL section and a CHANGELOG entry.

Tested with new unit tests in test/utils.js (mocking utils.isWSL), and pnpm test passes. Not tested on real WSL.

Fixes #354

@mikaelbr
mikaelbr force-pushed the fix/wsl-icon-path-354 branch from 45686a8 to 80df9fd Compare October 9, 2026 19:53
@mikaelbr
mikaelbr merged commit 83c2248 into master Oct 9, 2026
14 checks passed
@mikaelbr
mikaelbr deleted the fix/wsl-icon-path-354 branch October 9, 2026 19:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant