No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Electron Window Icon Never Changes

    Help
    3
    6
    521
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      Julia last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • nothingismagick
        nothingismagick last edited by

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

        1 Reply Last reply Reply Quote 0
        • metalsadman
          metalsadman last edited by

          @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
             }
          }
          
          1 Reply Last reply Reply Quote 0
          • J
            Julia last edited by

            @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?

            1 Reply Last reply Reply Quote 0
            • nothingismagick
              nothingismagick last edited by

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

              1 Reply Last reply Reply Quote 0
              • J
                Julia last edited by

                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.

                1 Reply Last reply Reply Quote 0
                • First post
                  Last post