question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

default Electron icon is used reason=application icon is not set

See original GitHub issue
  • ElectronNET.API 5.22.13, netcoreapp2.2, electron-builder version=20.44.4, node 10.10.0:
  • Target: windows

I use the win/icon option to add my own app icon:

    "win": {
      "icon": "Assets/icon.ico"
    },

electron-builder keeps logging:

default Electron icon is used reason=application icon is not set

I also tried ElectronNET.WebApp which gives the same message.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:13 (2 by maintainers)

github_iconTop GitHub Comments

8reactions
robalexclarkcommented, Jul 16, 2019

Its probably not a bug. It took me aaages to get it to work. If you don’t get the path to your icon correct from the “current working folder” it defaults to the electron icon and you get that message. Take a look at this repo and the electron.manifest.json there. Determine the path to icon.png and compare to your own settings.

5reactions
alexwiesecommented, Jan 16, 2020

For anyone else hitting this I found that I had to prefix the directory with bin to get it to work:

"win": {
      "icon": "bin/Assets/favicon.ico"
    },
Read more comments on GitHub >

github_iconTop Results From Across the Web

Set Electron favicon with electron-builder
Application icon is not set, default Electron icon will be used . Anyone can help me ? Part of my package.json : "scripts":...
Read more >
Electron .net. How to set console app icon in linux.
Message displayed in VS Code terminal : default Electron icon is used reason=application icon is not set. While there is no icon. Only...
Read more >
Changing electron app icon. Generate icns | by Khoa Pham
I get a problem that electron always shows default app icon. I tried using png , NativeImage , different icon sizes but still...
Read more >
Electron appx default electron icon used in start menu
I am trying to submit my electron app to the windows store but whenever I do It gets rejected for this reason:
Read more >
Icons
All files are optional — but it is important to provide icon.icns (or icon.png ), as otherwise the default Electron icon will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found