hoodie / notify-rust

☝️send desktop notifications from your Rust app.
Apache License 2.0
1.15k stars 74 forks source link

How to set a custom icon? #228

Open jonygomes06 opened 2 months ago

jonygomes06 commented 2 months ago

I cant find info on how to set a custom icon for the notification.

How can i set the icon to the path of, for example, "C:\this\is\the\path\image.png"?

Is there any problem in using .png? or is it necessary to use .ico?

rctlmk commented 2 months ago

On Windows, you need to set an AUMID for a custom icon. Take a look at https://github.com/hoodie/notify-rust/issues/219#issuecomment-2323375004 and this MSDN article.