mikaelbr / node-notifier

A Node.js module for sending notifications on native Mac, Windows and Linux (or Growl as fallback)
MIT License
5.73k stars 322 forks source link

Custom Icon not working #346

Open avinash-twilight opened 3 years ago

avinash-twilight commented 3 years ago

image

I am working on an Electron app for windows, linux & mac.

But I'm not pretty sure why the app icon was not loaded for every attempts I made instead it loads only the default one.

Attached the screenshot for your reference.

h110m commented 3 years ago

Just some questions before I can try to answer you're question:

  1. In which state is this error happening (dev or production)
  2. Have you tried just putting the "console logged" path in your normal windows explorer (file browser) to see if it actually exists?

Edit: Just noted something while looking at you're screenshot. If you are looking closely at the path it refers to a "electron.asar". This is electron's main file. That means if you actually try to go to this path (like in my second question) you would have noticed that this path shouldn't exist. To fix this problem just create the path and copy the image to it and you should be ready to go.