Skip to content

Show Windows notifications as Claudiu's, with its icon, not PowerShell's - #120

Merged
m4rocks merged 2 commits into
mainfrom
windows-notification-app
Nov 17, 2026
Merged

m4rocks merged 2 commits into
mainfrom
windows-notification-app

Conversation

@m4rocks

@m4rocks m4rocks commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

Summary

On Windows, Claudiu's notifications came from "Windows PowerShell". notify-rust sends a notification under PowerShell's app ID unless it is given one. The installed app now sends them under the app ID its Start menu shortcut carries, which Velopack reads from the install manifest (velopack.Claudiu). A dev build has no install and no shortcut, so it keeps PowerShell's, the only ID Windows will show for it.

The app ID alone names the app but leaves the header without an icon. Before its first notification, the installed app registers the ID under HKCU\Software\Classes\AppUserModelId�elopack.Claudiu with DisplayName Claudiu and an IconUri. The IconUri points at the icon copied into the data folder, which an update leaves in place.

Evidence

  • The installed Start menu shortcut's System.AppUserModel.ID is velopack.Claudiu, and sq.version has <shortcutAumid>velopack.Claudiu</shortcutAumid>.
  • A throwaway test located the install from its current\claudiu.exe path the way the installed app does, got velopack.Claudiu, and sent a notification under it. Windows showed it headed "Claudiu", with no icon at first. With the code's own registration in place, the header showed Claudiu's icon.
  • cargo clippy -D warnings is clean.

Not checked: a notification from an installed build of this branch, since that needs a release.

Risk

If Velopack can't find the install, notifications fall back to PowerShell's ID, as before. Uninstalling Claudiu leaves the registry key and the icon file behind. Revert this commit to undo it.

notify-rust sends a Windows notification under PowerShell's app ID unless it is given one, so notifications from the installed app were titled Windows PowerShell. The installed app now sends them under the app ID its Start menu shortcut carries, which Velopack reads from the install (`velopack.Claudiu`). A dev build has no install and no shortcut, so it keeps PowerShell's, the only ID Windows will show for it.
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
claudiu Ready Ready Preview Nov 17, 2026 10:16am UTC

The shortcut's app ID is enough for Windows to name the app in a notification, but not to show its icon. Before its first notification, the installed app now registers its app ID under HKCU\Software\Classes\AppUserModelId with the name Claudiu and an icon copied into the data folder, which an update leaves in place.
@m4rocks m4rocks changed the title Show Windows notifications as Claudiu's, not PowerShell's Show Windows notifications as Claudiu's, with its icon, not PowerShell's Nov 17, 2026
@m4rocks
m4rocks merged commit 46e7790 into main Nov 17, 2026
5 checks passed
@m4rocks
m4rocks deleted the windows-notification-app branch November 24, 2026 22:38

This branch was successfully deployed

1 active deployment
Preview — 30acde30 Deployed Nov 17, 2026 by vercel[bot]
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