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.

Linux AppImage icon does not show up

See original GitHub issue

Hello, I’ve been using electron-builder for about a year now. It’s made my life tremendously easier.

Users have reported this issue for a long time, and I thought it was some user error. But no matter what I’ve tried, I can’t get the app icon to show up in any Linux distro. I’ve tested on Ubuntu and Fedora.

Here is what it shows (bottom):

screen shot 2017-11-05 at 7 24 10 pm

Root package.json:

  "build": {
    "linux": {
      "category": "Office",
      "icon": "build/icon/",
      "target": [
        "AppImage",
        "deb"
      ]
    }
  }

My build folder in root:

build/
├── icon
│   └── Icon-512x512.png
├── icon.icns
└── icon.ico

My app/package.json does not have any icon related metadata. Should it?

Any other info I can share that might be helpful?

Here is the app repo: https://github.com/standardnotes/desktop/tree/backups

Using electron-builder 19.45.0.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:4
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

46reactions
moughxyzcommented, Nov 6, 2017

Oh wow, actually, this worked:

win = new BrowserWindow({
   ...
   icon: path.join(__dirname, '/icon/Icon-512x512.png')
})
3reactions
szTheorycommented, Apr 26, 2020

This fixed it for me if someone wants to see a live example in an open source app here is the commit https://github.com/szTheory/exifcleaner/commit/8a129a124d58c21b1f0aff3a79326b8b2d1ebf25

const createMainWindow = async function() {
	let options = {
		title: app.name,
		show: false,
		width: DEFAULT_WINDOW_WIDTH,
		height: DEFAULT_WINDOW_HEIGHT + 25,
		minWidth: DEFAULT_WINDOW_WIDTH,
		minHeight: DEFAULT_WINDOW_HEIGHT + 25,
		webPreferences: { nodeIntegration: true }
	};

	if (is.linux) {
		options = Object.assign({}, options, {
			icon: path.join(__dirname, "../../exifcleaner.png")
		});
	}

	return new BrowserWindow(options);
};
Read more comments on GitHub >

github_iconTop Results From Across the Web

Custom icon not displaying for AppImage - Ask Ubuntu
Custom icon not displaying for AppImage · 1. Try AppImageLauncher instead of bicycle. See askubuntu.com/a/1125304/66509 . · Thanks so much, not ...
Read more >
Programs in appimage format do not show program icons
I place the appimage files in my home folder and then right click on them and make sure under properties and permissions tab...
Read more >
No icon in panel for AppImage file : r/linuxmint - Reddit
I have no icon on the panel, when running this software, only a blank block. With other software eg: Firefox, VMWare, FreeCad and...
Read more >
AppImage does not show icon in task bar
The one thing I have noticed is that the task bar at the bottom of the screen does not show SER Player's icon...
Read more >
Icon not added by "AppImage Launcher" - MuseScore
there does not appear to be an icon attached to the appimage in the latest release. This means that if you "pin" to...
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