Skip to content

1024x1024 PNG is slow-loading. Add or replace with SVG or pre-sized PNGs

Thanks for your work packaging Electron.

Description

Today people are likely to have multiple versions of Electron installed to support other apps. I have four. Each version of Electron is now adding a .desktop file with a 1024x1024 PNG.

This is far larger than any desktop displays for app launching.So app launchers may need to do a relatively slow downscaling operation of for 3 or 4 electron apps to build a menu.

The best practice for better performance would be to either ship a SVG icon or pre-downscaled PNG icons or both.

But in the specific case of Electron, the app launched by the "electron.desktop" app is hardly useful, only launching a bare screen that contains some links. Considering that this won't be used by most people and is only intended as a "hello world" development example, an even simpler option is to quit shipping these .desktop files.

If you want to go the route of shipping an SVG file, Electron has one available here:

https://www.electronjs.org/assets/img/logo.svg

It could be installed here: /usr/share/icons/hicolor/scalable/apps/electron$version.svg

Additional info:

Steps to reproduce:

  1. Step 1
  2. Step 2
  3. ...
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information