Electron app has a ? for its icon on Ubuntu

Aperta
#4 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
25/100
Tipo di issue
Bug
Chiarezza
Da chiarire
Stato di attività
Ferma
Stack tecnologico
electron
Ambito
desktop

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

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

Lingua principale
HTML
Stelle
134
Fork
10
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di scripting/Scripting-News

Tutte le issue di scripting/Scripting-News

Issue simili

Altre issue su Desktop Dev

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.