Changing icon not working
See original GitHub issueDescribe the issue / bug
Changing icon files in build/icons
folder not working when I run npm run dev
. It still shows default electron icon.
Tell me about your development environment.
- Node version: v9.2.0
- NPM version: 5.6.0
- Operating System: archlinux
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:12
Top Results From Across the Web
Cannot change desktop icon Solved - Windows 10 Forums
Rt-click icon > Properties > Change icon ; I select the icon I want from the thumbnails of icons. Click OK; Click Apply....
Read more >Cannot Change the Default Folder Icons in Windows Explorer
Right-click the shortcut you created, click Properties, and then click Change Icon. · Click Browse, and type c:\windows\system\shell32.dll in the File name box, ......
Read more >Taskbar icons won't change - Super User
Once you change all of your icons you want to change, open up task manager (Control+Alt+Delete) and end explorer.exe Then click File >...
Read more >Cannot Change Desktop Icons in Windows 10-What to Do
Steps to allow changing desktop icons in Windows 10: ... Step 1: Access the Local Group Policy Editor. Step 2: Find and open...
Read more >How to Fix Desktop Icons Not Working/Not Showing Properly ...
Fix Desktop Shortcut Icons Not Showing Properly#DesktopIcons #Windows Facebook Page : https://www.facebook.com/MeMJTubeFollow on twitter: ...
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 Free
Top 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
@Quadriphobs1 If you are on macOS, this is a known issue with Electron and AFAIK won’t or can’t be fixed. There is a workaround, however:
node_modules/electron/dist/
Electron.app
and press ⌘I (or File > Get Info in the menubar).icns
file.icns
file onto the icon in the top left of theElectron.app
info window. It’s the icon at the top, next to the modified date and size.With that done, you’ll see your custom icon in the info window, and dev builds will now use the custom icon. Keep in mind you may need to repeat this process whenever you update the Electron package.
edit: found out you can use this same process with any file or folder, by the way. I applied my custom icon to the project folder as well for extra cool points.
FYI: My problem was that the
.icns
file was “corrupted”. I was using a web converter and it seems that didn’t create correct file. I downloaded Image2Icon app from Apple’s App Store and converted.png
to.icns
using that and now the icon works.This was of course for MacOs