Electron Window Icon Never Changes



  • Something is not working properly for me. Here are the steps:

    • The iconfactory extension installed fine.
    • My build operations produce all the icon files and place them in the src-electron/icons folder as expected.
    • The electron window opens with my app as expected.
    • So everything seems fine up to this point, but the icon on the electron window chrome (top-left little icon) continues to display the default electron icon when I run the build operation.

    To troubleshoot, I copied all the icons from the src-electron/icons folder to the src/statics/icons folder, but it had no effect.

    I’m running Windows 10 and the build process doesn’t generate any errors.

    Can someone please help?



  • Hi @Julia - can you please file an issue at the repository. I’ll triage it there.
    https://github.com/quasarframework/app-extension-icon-factory



  • @Julia try putting it in your quasar.conf.js file

    builder: {
        // https://www.electron.build/configuration/configuration
        //   appId: 'com.cloudbase.aldrin.primuscard',
       win: {
         icon: 'src-electron/icons/icon.ico' // your icon file here
       }
    }
    


  • @metalsadman Thank you for your comment. Unfortunately that didn’t fix the issue.

    @nothingismagick I don’t have a Github account.

    In the quasar.extensions.json file, I removed the iconHash to see if that would force the script to refresh something. The iconfactory operation just replaced the hash with the same hash and rebuilt all the icon files, but the default electron icon still appears at the top of the app window. 😞

    Any other ideas?



  • Are you using electron packager or builder? My experience (at least on mac) is builder does a better job of the icons.



  • Hi, sorry, I didn’t see this until now. Thank you for your reply.

    I think it’s Electron packager based on the output of the build process that I just performed. (It’s not clear from quasar.confi.js which build tool it’s using.)

    However, I just executed the first build for this project and noticed that the icons work when I actually execute a build for the project, but they don’t work when I launch the electron project in dev mode. Is that the way it’s supposed to work?

    At least now I know that the icons will be fine when I distribute the software. So, I guess it’s not a big deal if I have to stare at the default icon during development.


Log in to reply