question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How to Set Linux Icon

See original GitHub issue

Am opening a separate issue here rather than carry on in #125.

I’ve not been able to set an icon for the packaged Linux version of my app. It’s not documented and must work differently than OS X or Windows? In the other thread it was mentioned that you just need to set icon in BroswerWindow, however, that doesn’t work for me. Perhaps I’m missing something obvious?

Either way it would be good to get it stated clearly so that we can add it to the documentation 📖

I set icon in my BrowserWindow here. I’ve tried it both as a NativeImage and as the path to the .png via iconPath. I get the same results.

When using electron-packager I’m running this npm script. I’ve tried it with the --icon flag and without along with both variants of the main.js code I mention ☝️

I still do not get my icon as the app’s icon in the file manager or in the dock:

appicon

docicon

Are there other formatting specifications like size or color type? My image is here.

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:22 (11 by maintainers)

github_iconTop GitHub Comments

6reactions
Autre31415commented, Jun 23, 2016

I’ve done some testing on this and found out icons can work under certain conditions (Without using native images) which I detail at: https://github.com/electron/electron/issues/6205

5reactions
maleptcommented, Jun 22, 2016

I missed it before, you need to set a PNG, not an ICO.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Change Your Application Icon from the Terminal in Linux
How to Change Your Application Icon from the Terminal in Linux · Find Your Application's Desktop Parameters · Swap the Icon · Save...
Read more >
How to Change file, folder or app Icons in Gnome Linux
How to Change file, folder or app Icons in Gnome Linux · 1. Download icon · 2. Open GNOME File Manager · 3....
Read more >
Icons - ArchWiki
Firstly, find and download your desired icon pack. · Then navigate to the directory which contains the icon pack and extract it. ·...
Read more >
Change Icon Theme in Gnome DE - LinuxForDevices
Open the Gnome Tweak Tool which we installed earlier and then navigate to the Appearance section. ... From there, select the icon set...
Read more >
How To Install Custom Themes And Icons In Linux
If you're using Gnome, install the Gnome Tweak Tool. Find the “Appearance” section, and use it to select your newly installed desktop theme...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found