Electron app has a ? for its icon on Ubuntu

Open
#4 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
electron
Domain
desktop

Research direction

Start with the BrowserWindow icon code linked in the issue and compare the NativeImage and path-based versions against the packaged Electric-Pork Linux zip. Check the PNG asset and the Linux dock behavior; done means the packaged app displays its intended icon instead of a question mark in Ubuntu.

Written by the indexing model from the issue text.

Description

I want the Linux version of Electric Pork to have an icon in the dock.

Right now it's showing a question mark.

Here's what I did.

  1. When the app is ready, where I create the new BrowserWindow, I added an icon value that is a NativeImage. Here's the code.

  2. Here's the PNG file. I didn't know what dimensions to make it so I made it large. It occurs to me that might be the problem.

  3. The app launches, but the icon in the doc isn't what it should be.

Note -- I originally just provided a path to the icon, and verified that the PNG file is at the location it was pointing to. Here's the code for that version.

Any help much appreciated. 🎈

Dave

Dominant language
HTML
Stars
134
Forks
10
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from scripting/Scripting-News

All issues in scripting/Scripting-News

Similar issues

More Desktop Dev issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.