Skip to content

Icon not displayed in latest release (incorrect runtime icon path in src/main.js) #26

Description

@KernelChief

In the latest release, the app icon is not showing correctly (window/taskbar icon falls back to default).

After checking the code, the runtime icon path in src/main.js points to a non-existent location relative to src/.

Current code:

icon: path.join(__dirname, 'assets/icon.png')

Because __dirname resolves to .../src, this path becomes: .../src/assets/icon.png

But the actual icon file is located at: .../assets/icon.png

As a result, Electron cannot find the icon at runtime.

Expected Behavior

The application should display the custom icon (from assets/icon.png) in the app window/taskbar/dock.

Actual Behavior

Default/fallback icon is used instead of the project icon.

Root Cause

Incorrect relative path in BrowserWindow icon configuration.

Proposed Fix

Update the icon path in src/main.js to reference the existing root-level assets folder:

icon: path.join(__dirname, '../assets/icon.png')

Verification

  • Verified resolved path points to: ../assets/icon.png
  • Verified file exists at that path.

Additional Notes

  • This is a minimal one-line fix.
  • No other behavior/config changes are required.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions