Skip to content
This repository has been archived by the owner on Dec 27, 2022. It is now read-only.

How to package with an app icon for linux? #229

Closed
jwir3 opened this issue Nov 15, 2016 · 2 comments
Closed

How to package with an app icon for linux? #229

jwir3 opened this issue Nov 15, 2016 · 2 comments

Comments

@jwir3
Copy link

jwir3 commented Nov 15, 2016

(This is also a question on stackoverflow).

I have an electron app, arbitrator. It uses electron-boilerplate as a base. Within that electron application, I have an icon specified in resources/icons/512x512.png. When I run the application using npm start, the icon shows up on the Gnome Unity bar.

If, however, I run npm run release, and then run cd dist/linux && ./Arbitrator, the application runs, but the icon doesn't show up in the Unity bar (just the default icon). Further, if I run the ./Arbitrator command from the source repository working directory, then it finds the resources/icons/512x512.png file and shows it in the unity bar.

Is there a way I can make sure that the icon is shown for the app, regardless of how it's run (it seems to be referencing the path for the icon locally, rather than using the asar file for resources).

@black-snow
Copy link
Contributor

Taking a quick look at electron builder's options I don't see an icon-option for linux at all.
Guess you should rather post this issue there.

@jwir3
Copy link
Author

jwir3 commented Nov 16, 2016

@black-snow Ah... this appears to be electron-userland/electron-builder#498.

@jwir3 jwir3 closed this as completed Nov 16, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants