mirror of
https://github.com/ElectronNET/Electron.NET.git
synced 2026-02-04 05:34:51 +00:00
Electron default icon missing on Linux (ubuntu 18.04.6 TLS) #756
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mazm786 on GitHub (Jan 27, 2022).
Originally assigned to: @GregorBiswanger on GitHub.
Electron default icon missing on Linux (ubuntu 18.04.6 TLS)
net 5.0
While custom icon setting also failed.
Try 1 (Startup.cs file)
var options = new BrowserWindowOptions { Icon=$"./icon.ico", WebPreferences = new WebPreferences { WebSecurity = false } };Try 2 (Startup.cs file)
var options = new BrowserWindowOptions { Icon=$"linux_256x256.png", WebPreferences = new WebPreferences { WebSecurity = false } };Try 3 (Electron.manifest.json file)
{ "executable": "MyElectronMusicPlayer", "build": { "appId": "my.app", "productName": "Electron Music Player", "linux": { "category":"Utility", "icon": "linux_256x256.png" } } }@danatcofo commented on GitHub (Jan 27, 2022):
@mazm786 the proper way to do it is documented in the electron-builder spec here. I can't tell right off the bat but I think your try 3 is the correct approach. However there is a gotcha that can occur... around pathing due to the electron-builder command not occuring where you might expect it to occur. here is the working path I'm using for my app.
here is my file structure .. if you notice.. there are a couple extra
../s in my path given this file structureI believe the extra
../s are to account for the electron app actually being built in a deeper folder by electronize. not really clearly documented or documented at all but this was my trial and error outcome.@danatcofo commented on GitHub (Jan 27, 2022):
Isn't this a duplicate basically of #659 ?
@tub5 commented on GitHub (Feb 22, 2022):
It should be said that custom icons in the taskbar won't appear if you're just using
electronize startbut will appear in the published version@GregorBiswanger commented on GitHub (Mar 28, 2023):
🎉🚀 New Electron.NET version 23.6.1 released 🚀🎉
With native Electron 23 and .NET 6 support. Your problem should be fixed here. If you continue to have the problem, please let us know. Please note the correct updating of your API & CLI. Info in the README. Have fun!