Can't use icons
See original GitHub issue- Version: 22.8.0
- Electron Version: 9.2.0
- Electron Type (current, beta, nightly): current
- Target: Linux
Hi I have an Electron app with an icon in the mainWindow and I build it but then the icon can’t be loaded. I have tried everything and search for everything but can’t find something that can help.
(node:27353) UnhandledPromiseRejectionWarning: Error: Image could not be created from /tmp/.mount_FW-DesKIkK8v/resources/app.asar/build/icon.png
at createWindow (/tmp/.mount_FW-DesKIkK8v/resources/app.asar/main.js:17:16)
at /tmp/.mount_FW-DesKIkK8v/resources/app.asar/main.js:88:3
(node:27353) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:27353) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
tray = new Tray(path.join(__dirname, "/build/icon.png"));
Issue Analytics
- State:
- Created 3 years ago
- Comments:7
Top Results From Across the Web
Not able to use icons on taskbar, - Microsoft Community
1. Go to settings> Update and Security> troubleshoot > Additional troubleshooter> Then click Windows Store apps · 2. Temporarily Disable the Anti ......
Read more >Can't move desktop icons in Windows 11/10
If you are unable to or cannot move desktop icons in Windows 11/10 then this post is sure to help you. We have...
Read more >How to Change App Icons on iPhone (No Shortcuts Banner!)
In this tutorial I'll show you how to replace a boring App Icon with an ... Banner Notification running each time you use...
Read more >Troubleshooting | Font Awesome Docs
Is the icon you're trying to use available in the version of Font Awesome you are using on your project? - We release...
Read more >my phone doesnt let me click on app icons… - Apple Community
a hacker did something to my iphone to were i cant turn off my phone or click on any of my apps what...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi, @xRealNeon issue can be fixed via https://github.com/electron/electron/issues/24221#issuecomment-651320602
It comes in electron@9.x.x. electron-builder works perfactly
Please put it into your documentation